1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 11:36:07 +01:00

plugins/mini-comment: init

This commit is contained in:
Heitor Augusto 2025-11-02 00:04:21 -03:00 committed by Austin Horstman
parent 5026bfcaa1
commit 2d9f021430
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib, ... }:
{
empty = {
plugins.mini-comment.enable = true;
};
defaults = {
plugins.mini-comment = {
enable = true;
settings = {
options = {
custom_commentstring = lib.nixvim.mkRaw "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.mkRaw "function() end";
post = lib.nixvim.mkRaw "function() end";
};
};
};
};
}