update comment toggle mappings (#658)

This commit is contained in:
siduck 2021-12-16 18:55:33 +05:30
parent f718060260
commit 1cd5150b70

View File

@ -124,8 +124,8 @@ end
M.comment = function() M.comment = function()
local m = plugin_maps.comment.toggle local m = plugin_maps.comment.toggle
map("n", m, ":lua require('Comment.api').toggle()<CR>") map("n", m, ":lua require('Comment.api').toggle_current_linewise()<CR>")
map("v", m, ":lua require('Comment.api').gc(vim.fn.visualmode())<CR>") map("v", m, ":lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode())<CR>")
end end
M.dashboard = function() M.dashboard = function()