28 lines
700 B
Lua
28 lines
700 B
Lua
return {
|
|
{
|
|
"echasnovski/mini.comment",
|
|
version = "*",
|
|
event = "VeryLazy",
|
|
dependencies = {
|
|
{ "nvim-treesitter/nvim-treesitter-context" },
|
|
},
|
|
opts = {
|
|
options = {
|
|
custom_commentstring = function()
|
|
return require("ts_context_commentstring.internal").calculate_commentstring()
|
|
or vim.bo.commentstring
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"LudoPinelli/comment-box.nvim",
|
|
opts = {
|
|
outer_blank_lines = true,
|
|
},
|
|
keys = {
|
|
{ "gcb", function() require("comment-box").lcbox() end, { desc = "Create a comment box", mode = { "n", "v" }, } },
|
|
{ "gcl", function() require("comment-box").llline() end, { desc = "Create a comment line", mode = { "n", "v" }, } },
|
|
},
|
|
},
|
|
}
|