diff --git a/lua/custom/plugins/editing.lua b/lua/custom/plugins/editing.lua index 15eb3b0..599c04a 100644 --- a/lua/custom/plugins/editing.lua +++ b/lua/custom/plugins/editing.lua @@ -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)' }, + { + 'v', + function() + require('Comment.api').toggle.linewise.current() + end, + mode = { 'n', 'v' }, + desc = 'Comment toggle current line', + }, }, - init = function() - require('core.utils').load_mappings 'comment' - end, config = function(_, opts) vim.keymap.set('n', 'c', function() require('Comment.api').toggle.linewise.current()