You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kickstart.nvim/lua/rakshit/plugins/comment.lua

20 lines
520 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, jsx, svelte, html files
pre_hook = ts_context_commentstring.create_pre_hook(),
}
end,
}