Move ts-autotag to be a dependency of treesitter instead of having its own file

This commit is contained in:
Jose Carvajal 2026-03-18 16:50:07 -06:00
parent d2993523c2
commit 131a329a50
3 changed files with 8 additions and 15 deletions

View File

@ -1,13 +0,0 @@
return {
'windwp/nvim-ts-autotag',
-- event = { 'BufReadPre', 'BufNewFile' },
-- opts = {
-- Defaults
-- enable_close = true, -- Auto close tags
-- enable_rename = true, -- Auto rename pairs of tags
-- enable_close_on_slash = false, -- Auto close on trailing </
-- },
config = function(_, opts)
require('nvim-ts-autotag').setup(opts)
end,
}

View File

@ -4,7 +4,14 @@ return {
lazy = false, lazy = false,
branch = 'main', branch = 'main',
build = ':TSUpdate', build = ':TSUpdate',
opts = {}, dependencies = {
'windwp/nvim-ts-autotag',
},
opts = {
autotag = {
enable = true,
},
},
-- main = 'nvim-treesitter.configs', -- Sets main module to use for opts -- main = 'nvim-treesitter.configs', -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter` -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
config = function(_, opts) config = function(_, opts)

View File

@ -40,7 +40,6 @@ require('lazy').setup({
require 'custom/plugins/theme', require 'custom/plugins/theme',
require 'custom/plugins/indent-blankline', require 'custom/plugins/indent-blankline',
-- require 'custom/plugins/leetcode', -- require 'custom/plugins/leetcode',
require 'custom/plugins/ts-tag-autoclose',
}, { }, {
ui = { ui = {
-- If you are using a Nerd Font: set icons to an empty table which will use the -- If you are using a Nerd Font: set icons to an empty table which will use the