fix: contex-ts-commentstring with comment.nvim integration

This commit is contained in:
asep komarudin 2024-02-17 15:27:41 +07:00
parent 6274a2af41
commit aeb724aa07
2 changed files with 31 additions and 25 deletions

View file

@ -182,12 +182,17 @@ return {
{
"JoosepAlviste/nvim-ts-context-commentstring",
lazy = true,
event = "InsertEnter",
event = "BufWinEnter",
dependencies = "nvim-treesitter/nvim-treesitter",
config = function()
require("ts_context_commentstring").setup({
enable_autocmd = false,
})
end,
},
{
"numToStr/Comment.nvim",
event = "InsertEnter",
event = "BufWinEnter",
config = function()
require("user.comment")
end,
@ -248,7 +253,7 @@ return {
-- for auto close tag
{
"windwp/nvim-ts-autotag",
event = "InsertEnter",
event = "BufWinEnter",
dependencies = "nvim-treesitter/nvim-treesitter",
config = function()
require("nvim-ts-autotag").setup()