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` --- flake.nix | 1 + lua/config/plugins/treesitter.lua | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 3bfa69b..ab64aeb 100644 --- a/flake.nix +++ b/flake.nix @@ -213,6 +213,7 @@ treesitter = [ nvim-treesitter.withAllGrammars nvim-treesitter-textobjects + nvim-ts-autotag ]; completion = [ blink-cmp ]; 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