fix comment.nvim visual commenting not working (#1081)
This commit is contained in:
parent
0e8c73527c
commit
359a286aea
1 changed files with 8 additions and 2 deletions
|
@ -80,12 +80,18 @@ M.comment = {
|
||||||
|
|
||||||
-- toggle comment in both modes
|
-- toggle comment in both modes
|
||||||
n = {
|
n = {
|
||||||
["<leader>/"] = { "<cmd> lua require('Comment.api').toggle_current_linewise()<CR>", "蘒 toggle comment" },
|
["<leader>/"] = {
|
||||||
|
function()
|
||||||
|
require("Comment.api").toggle_current_linewise()
|
||||||
|
end,
|
||||||
|
|
||||||
|
"蘒 toggle comment",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
v = {
|
v = {
|
||||||
["<leader>/"] = {
|
["<leader>/"] = {
|
||||||
"<cmd> lua require('Comment.api').toggle_current_linewise_op(vim.fn.visualmode())<CR>",
|
"<ESC><cmd>lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode())<CR>",
|
||||||
"蘒 toggle comment",
|
"蘒 toggle comment",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue