From 3c4fdaf4bc5b9fccab15d371a4cfbecad6913fd1 Mon Sep 17 00:00:00 2001 From: Mora Unie Youer Date: Thu, 8 May 2025 10:23:21 +0300 Subject: feat: add `nvim-ts-autotag` --- lua/config/plugins/treesitter.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lua/config/plugins/treesitter.lua') diff --git a/lua/config/plugins/treesitter.lua b/lua/config/plugins/treesitter.lua index 931a474..63bf48d 100644 --- a/lua/config/plugins/treesitter.lua +++ b/lua/config/plugins/treesitter.lua @@ -2,6 +2,7 @@ return { { "nvim-treesitter", event = "DeferredUIEnter", + dep_of = { "nvim-ts-autotag" }, load = function(name) vim.cmd.packadd(name) vim.cmd.packadd("nvim-treesitter-textobjects") @@ -13,4 +14,11 @@ return { }) end, }, + { + "nvim-ts-autotag", + event = { "BufReadPre", "BufNewFile" }, + after = function(_) + require("nvim-ts-autotag").setup() + end, + }, } -- cgit v1.2.3-70-g09d2