comment keys
This commit is contained in:
parent
7ba8b0a752
commit
dc80c47b6a
|
@ -8,10 +8,15 @@ return {
|
|||
{ 'gbc', mode = 'n', desc = 'Comment toggle current block' },
|
||||
{ 'gb', mode = { 'n', 'o' }, desc = 'Comment toggle blockwise' },
|
||||
{ 'gb', mode = 'x', desc = 'Comment toggle blockwise (visual)' },
|
||||
},
|
||||
init = function()
|
||||
require('core.utils').load_mappings 'comment'
|
||||
{
|
||||
'<leader>v',
|
||||
function()
|
||||
require('Comment.api').toggle.linewise.current()
|
||||
end,
|
||||
mode = { 'n', 'v' },
|
||||
desc = 'Comment toggle current line',
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
vim.keymap.set('n', '<leader>c', function()
|
||||
require('Comment.api').toggle.linewise.current()
|
||||
|
|
Loading…
Reference in New Issue