25 lines
617 B
Nix
25 lines
617 B
Nix
# homepage: https://github.com/numtostr/comment.nvim/
|
|
# nixvim doc: https://nix-community.github.io/nixvim/plugins/comment/index.html
|
|
_:
|
|
|
|
{
|
|
opts = {
|
|
enable = true;
|
|
settings.pre_hook = "require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook()";
|
|
};
|
|
|
|
keymaps = [
|
|
{
|
|
key = "<leader>/";
|
|
action = "<Plug>(comment_toggle_linewise_current)";
|
|
options.desc = "Toggle comment line";
|
|
mode = "n";
|
|
}
|
|
{
|
|
key = "<leader>/";
|
|
action = "<Plug>(comment_toggle_linewise_visual)";
|
|
options.desc = "Toggle comment line";
|
|
mode = "v";
|
|
}
|
|
];
|
|
}
|