-
-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
Here is my config (using lazy):
return {
"numToStr/Comment.nvim",
keys = {
{
"<C-_>",
function()
require("Comment.api").toggle.linewise.current()
require("rizhiy.keys").press("j", "n")
end,
desc = "Comment line",
},
{
"<C-_>",
function() require("Comment.api").toggle.linewise(vim.fn.visualmode()) end,
mode = "v",
desc = "Comment selection",
},
},
opts = {
mappings = {
basic = false,
},
},
}
When I try to comment in visual mode (using C-/), different code rather than selection gets commented, sometimes the outer scope, sometimes completely unrelated code altogether.
This config was working previously, not sure what changed.
vim version:
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1692716794
FineFindus and jade-tea-h
Metadata
Metadata
Assignees
Labels
No labels