added comment.nvim but need to fix visual mode

This commit is contained in:
foxora 2026-02-22 00:01:08 +00:00
parent bf1706b0fa
commit 2c76f1f6ef
3 changed files with 246 additions and 205 deletions

View file

@ -0,0 +1,23 @@
return {
{
"comment.nvim",
event = { "BufReadPost", "BufNewFile" },
after = function(plugin)
require("Comment").setup({
toggler = {
line = "<leader>cc",
block = "<leader>bc",
},
opLeader = {
line = "<leader>c",
block = "<leader>b",
},
extra = {
above = "<leader>c0",
below = "<leader>bo",
eol = "<leader>cA",
},
})
end,
},
}

View file

@ -5,4 +5,5 @@ require("lze").load({
{ import = "plugins.fyler" },
{ import = "plugins.mini-hipatterns" },
{ import = "plugins.format" },
{ import = "plugins.comment" },
})