summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix1
-rw-r--r--lua/config/plugins/treesitter.lua8
2 files changed, 9 insertions, 0 deletions
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,
+ },
}