add keymaps
This commit is contained in:
parent
d49cf6e3ad
commit
f76b553076
2 changed files with 30 additions and 0 deletions
|
|
@ -7,4 +7,19 @@ _:
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.pre_hook = "require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook()";
|
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";
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,18 @@
|
||||||
_: {
|
_: {
|
||||||
opts.enable = true;
|
opts.enable = true;
|
||||||
|
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
key = "<leader>O";
|
||||||
|
action = "function() require('oil').toggle_float() end";
|
||||||
|
options.desc = "Toggle oil floating window";
|
||||||
|
mode = "n";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>to";
|
||||||
|
action = "function() require('oil').toggle_float() end";
|
||||||
|
options.desc = "Toggle oil floating window";
|
||||||
|
mode = "n";
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue