blob: cf99d3d54f16907d5672e3ce464629e567f9649a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{...}: {
programs.nixvim = {
plugins.comment-nvim = {
enable = true;
padding = true;
sticky = true;
mappings = {
basic = false;
extended = false;
extra = false;
};
};
maps = {
visual = {
"gcc" = {
action = "<Plug>(comment_toggle_linewise_visual)";
desc = "toggle the current line in a linewise comment";
};
"gbc" = {
action = "<Plug>(comment_toggle_blockwise_visual)";
desc = "toggle the current line in a blockwise comment";
};
};
normal = {
"gcc" = {
action = "<Plug>(comment_toggle_linewise_current)";
desc = "toggle the current line in a linewise comment";
};
"gbc" = {
action = "<Plug>(comment_toggle_blockwise_current)";
desc = "toggle the current line in a blockwise comment";
};
};
};
};
}
|