update comment toggle mappings (#658)

This commit is contained in:
siduck 2021-12-16 18:55:33 +05:30
parent f718060260
commit 1cd5150b70
1 changed files with 2 additions and 2 deletions

View File

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