dots/nvim/lua/wqtt/plugins/comment.lua

17 lines
393 B
Lua
Raw Permalink Normal View History

2025-02-26 16:57:47 -05:00
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,
}