mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-09 09:41:19 +01:00
19 lines
512 B
Lua
19 lines
512 B
Lua
return {
|
|
"numToStr/Comment.nvim",
|
|
event = { "BufReadPre", "BufNewFile" },
|
|
dependencies = {
|
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
|
},
|
|
config = function()
|
|
-- import comment plugin safely
|
|
local comment = require("Comment")
|
|
|
|
local ts_context_commentstring = require("ts_context_commentstring.integrations.comment_nvim")
|
|
|
|
-- enable comment
|
|
comment.setup({
|
|
-- for commenting tsx and jsx files
|
|
pre_hook = ts_context_commentstring.create_pre_hook(),
|
|
})
|
|
end,
|
|
}
|