make jsx commentable

This commit is contained in:
andrzej 2024-06-25 22:11:59 +02:00
parent 36389b433b
commit f2432d6989
1 changed files with 12 additions and 1 deletions

View File

@ -1,2 +1,13 @@
--this plugin allows commenting selections
return { "numToStr/Comment.nvim", opts = {} }
return {
"numToStr/Comment.nvim",
dependencies = { "JoosepAlviste/nvim-ts-context-commentstring" },
config = function()
require("ts_context_commentstring").setup({
enable_autocmd = false,
})
require("Comment").setup({
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
})
end,
}