mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/comment: init
This commit is contained in:
parent
86fc7a3764
commit
68483183c1
7 changed files with 62 additions and 0 deletions
|
@ -63,6 +63,7 @@
|
||||||
- `mini.bufremove`
|
- `mini.bufremove`
|
||||||
- `mini.clue`
|
- `mini.clue`
|
||||||
- `mini.colors`
|
- `mini.colors`
|
||||||
|
- `mini.comment`
|
||||||
|
|
||||||
[kaktu5](https://github.com/kaktu5):
|
[kaktu5](https://github.com/kaktu5):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1080,6 +1080,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plugin-mini-comment": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736611383,
|
||||||
|
"narHash": "sha256-vAgBDSVtXCP+rlu+cmXdoZQBGShyH7KfL8E/gvDMfnM=",
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.comment",
|
||||||
|
"rev": "6e1f9a8ebbf6f693fa3787ceda8ca3bf3cb6aec7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.comment",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"plugin-minimap-vim": {
|
"plugin-minimap-vim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2285,6 +2301,7 @@
|
||||||
"plugin-mini-bufremove": "plugin-mini-bufremove",
|
"plugin-mini-bufremove": "plugin-mini-bufremove",
|
||||||
"plugin-mini-clue": "plugin-mini-clue",
|
"plugin-mini-clue": "plugin-mini-clue",
|
||||||
"plugin-mini-colors": "plugin-mini-colors",
|
"plugin-mini-colors": "plugin-mini-colors",
|
||||||
|
"plugin-mini-comment": "plugin-mini-comment",
|
||||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||||
|
|
|
@ -790,5 +790,10 @@
|
||||||
url = "github:echasnovski/mini.colors";
|
url = "github:echasnovski/mini.colors";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin-mini-comment = {
|
||||||
|
url = "github:echasnovski/mini.comment";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
13
modules/plugins/mini/comment/comment.nix
Normal file
13
modules/plugins/mini/comment/comment.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
in {
|
||||||
|
options.vim.mini.comment = {
|
||||||
|
enable = mkEnableOption "mini.comment";
|
||||||
|
setupOpts = mkPluginSetupOption "mini.comment" {};
|
||||||
|
};
|
||||||
|
}
|
19
modules/plugins/mini/comment/config.nix
Normal file
19
modules/plugins/mini/comment/config.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.nvim.dag) entryAnywhere;
|
||||||
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
|
|
||||||
|
cfg = config.vim.mini.comment;
|
||||||
|
in {
|
||||||
|
vim = mkIf cfg.enable {
|
||||||
|
startPlugins = ["mini-comment"];
|
||||||
|
|
||||||
|
pluginRC.mini-comment = entryAnywhere ''
|
||||||
|
require("mini.comment").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/mini/comment/default.nix
Normal file
6
modules/plugins/mini/comment/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./comment.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -9,5 +9,6 @@
|
||||||
./bufremove
|
./bufremove
|
||||||
./clue
|
./clue
|
||||||
./colors
|
./colors
|
||||||
|
./comment
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue