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
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ M.comment = {
n = { n = {
["<leader>/"] = { ["<leader>/"] = {
function() function()
require("Comment.api").toggle_current_linewise() require("Comment.api").toggle.linewise.current()
end, end,
"toggle comment", "toggle comment",
}, },
@ -121,7 +121,7 @@ M.comment = {
v = { v = {
["<leader>/"] = { ["<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", "toggle comment",
}, },
}, },