update comment.nvim mappings ( fix its breaking change )

https://github.com/numToStr/Comment.nvim/commit/cd1c38163dd9a11247bcb333d72a36bae76c45f9
This commit is contained in:
siduck
2022-08-13 05:52:33 +05:30
parent f2c3ed0e7d
commit 5f23aaf1ca
+2 -2
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",
}, },
}, },