make jsx commentable
This commit is contained in:
parent
36389b433b
commit
f2432d6989
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue