mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/mini-comment: init
This commit is contained in:
parent
5026bfcaa1
commit
2d9f021430
2 changed files with 56 additions and 0 deletions
26
plugins/by-name/mini-comment/default.nix
Normal file
26
plugins/by-name/mini-comment/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "mini-comment";
|
||||
moduleName = "mini.comment";
|
||||
|
||||
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||
|
||||
settingsExample = {
|
||||
options = {
|
||||
custom_commentstring = lib.nixvim.nestedLiteralLua "nil";
|
||||
ignore_blank_line = false;
|
||||
start_of_line = false;
|
||||
pad_comment_parts = true;
|
||||
};
|
||||
mappings = {
|
||||
comment = "gc";
|
||||
comment_line = "gcc";
|
||||
comment_visual = "gc";
|
||||
textobject = "gc";
|
||||
};
|
||||
hooks = {
|
||||
pre = lib.nixvim.nestedLiteralLua "function() end";
|
||||
post = lib.nixvim.nestedLiteralLua "function() end";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue