mini/comment: init

This commit is contained in:
LilleAila 2025-01-17 19:25:56 +01:00
parent 86fc7a3764
commit 68483183c1
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -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):

View file

@ -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",

View file

@ -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;
};
}; };
} }

View 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" {};
};
}

View 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})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./comment.nix
./config.nix
];
}

View file

@ -9,5 +9,6 @@
./bufremove ./bufremove
./clue ./clue
./colors ./colors
./comment
]; ];
} }