update comment.nvim mappings ( fix its breaking change )

cd1c38163d
This commit is contained in:
siduck 2022-08-13 05:52:33 +05:30
parent f2c3ed0e7d
commit 5f23aaf1ca

View File

@ -113,7 +113,7 @@ M.comment = {
n = {
["<leader>/"] = {
function()
require("Comment.api").toggle_current_linewise()
require("Comment.api").toggle.linewise.current()
end,
"toggle comment",
},
@ -121,7 +121,7 @@ M.comment = {
v = {
["<leader>/"] = {
"<ESC><cmd>lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode())<CR>",
"<ESC><cmd>lua require('Comment.api').toggle.linewise(vim.fn.visualmode())<CR>",
"toggle comment",
},
},