Cleanup nvim config

This commit is contained in:
Alexander Navarro 2023-10-26 09:12:49 -03:00
parent 33cce48101
commit d9e2c81e42
16 changed files with 174 additions and 488 deletions

View file

@ -3,20 +3,21 @@ return {
"echasnovski/mini.comment",
version = "*",
event = "VeryLazy",
depends = {
{ "nvim-treesitter/nvim-treesitter-context" },
},
opts = {
options = {
custom_commentstring = function()
return require("ts_context_commentstring.internal").calculate_commentstring()
or vim.bo.commentstring
or vim.bo.commentstring
end,
},
},
},
{
"LudoPinelli/comment-box.nvim",
-- init = nil,
event = "VeryLazy",
-- opts = {},
config = function()
require("comment-box").setup({
outer_blank_lines = true,
@ -25,9 +26,9 @@ return {
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")
MAP({ "n", "v" }, "gcb", cb.lcbox, "Create a comment box")
-- centered adapted box with centered text
MAP({ "n", "v" }, "<Leader>cl", cb.cline, "Create a comment line")
MAP({ "n", "v" }, "gcl", cb.cline, "Create a comment line")
end,
},
}