add comment box to nvim

This commit is contained in:
Alexander Navarro 2023-10-25 19:47:40 -03:00
parent ead5d1d2d2
commit 282d1e09ad
2 changed files with 20 additions and 1 deletions

View file

@ -12,4 +12,22 @@ return {
}, },
}, },
}, },
{
"LudoPinelli/comment-box.nvim",
-- init = nil,
event = "VeryLazy",
-- opts = {},
config = function()
require("comment-box").setup({
outer_blank_lines = true,
})
local cb = require("comment-box")
-- left aligned fixed size box with left aligned text
MAP({ "n", "v" }, "<Leader>cb", cb.lcbox, "Create a comment box")
-- centered adapted box with centered text
MAP({ "n", "v" }, "<Leader>cl", cb.cline, "Create a comment line")
end,
},
} }

View file

@ -47,6 +47,7 @@ return {
miniclue.gen_clues.z(), miniclue.gen_clues.z(),
{ mode = "n", keys = "<Leader>b", desc = "+Buffers" }, { mode = "n", keys = "<Leader>b", desc = "+Buffers" },
{ mode = "n", keys = "<Leader>c", desc = "+Comments" },
{ mode = "n", keys = "<Leader>bh", postkeys = "<Leader>b" }, { mode = "n", keys = "<Leader>bh", postkeys = "<Leader>b" },
{ mode = "n", keys = "<Leader>bl", postkeys = "<Leader>b" }, { mode = "n", keys = "<Leader>bl", postkeys = "<Leader>b" },
{ mode = "n", keys = "<Leader>l", desc = "+LSP" }, { mode = "n", keys = "<Leader>l", desc = "+LSP" },