17 lines
393 B
Lua
17 lines
393 B
Lua
return {
|
|
"numToStr/Comment.nvim",
|
|
event = { "BufReadPre", "BufNewFile" },
|
|
dependencies = {
|
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
|
},
|
|
config = function()
|
|
local comment = require("Comment")
|
|
|
|
local ts_context_contextstring = require("ts_context_commentstring.integrations.comment_nvim")
|
|
|
|
comment.setup({
|
|
pre_hook = ts_context_contextstring.create_pre_hook(),
|
|
})
|
|
end,
|
|
}
|