move some keymaps to the corresponding plugin configs

This commit is contained in:
Oliver Hartmann
2022-12-05 14:44:29 +01:00
parent e111deabc9
commit bce0373dfb
4 changed files with 138 additions and 114 deletions

View File

@@ -1,3 +1,13 @@
require('Comment').setup({
mappings = false,
})
require('Comment').setup({
mappings = false,
})
require('legendary').keymap(
{
'<c-c>',
{
n = '<Plug>(comment_toggle_linewise_current)',
v = '<Plug>(comment_toggle_linewise_visual)gv'
},
description = 'Toggle comment'
}
)