From 4d31dd83da1c8700060536c77f184c6edcca730c Mon Sep 17 00:00:00 2001
From: Saumit Dinesan <justsaumit@protonmail.com>
Date: Sat, 22 Jul 2023 16:18:08 +0530
Subject: nvim: nvim-treesitter autotag extension

---
 .config/nvim/lua/justsaumit/plugins.lua           | 2 +-
 .config/nvim/lua/justsaumit/treesitter-config.lua | 6 ++++++
 .config/nvim/plugin/packer_compiled.lua           | 5 +++++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/.config/nvim/lua/justsaumit/plugins.lua b/.config/nvim/lua/justsaumit/plugins.lua
index b00c57f..2913f6f 100644
--- a/.config/nvim/lua/justsaumit/plugins.lua
+++ b/.config/nvim/lua/justsaumit/plugins.lua
@@ -82,7 +82,7 @@ return packer.startup(function(use)
 
 --    use("jose-elias-alvarez/null-ls.nvim") --> inject lsp diagnistocs, formattings, code actions, and more ...
 --HTML
---    use 'windwp/nvim-ts-autotag'
+    use("windwp/nvim-ts-autotag") -- Use treesitter autotag
 --Markdown + Zenmode
 --Telescope
     use {'nvim-telescope/telescope.nvim', tag = '0.1.2', requires = { {'nvim-lua/plenary.nvim'} }}
diff --git a/.config/nvim/lua/justsaumit/treesitter-config.lua b/.config/nvim/lua/justsaumit/treesitter-config.lua
index d2f477f..9249da7 100644
--- a/.config/nvim/lua/justsaumit/treesitter-config.lua
+++ b/.config/nvim/lua/justsaumit/treesitter-config.lua
@@ -16,5 +16,11 @@ require'nvim-treesitter.configs'.setup {
   },
   autotag = {
     enable = true,
+    enable_close = true,
+    enable_close_on_slash = true,
+    enable_rename = true,
+    filetypes = { "html" , "xml",
+    'javascript', 'typescript', 'svelte',
+    'markdown',},
   }
 }
diff --git a/.config/nvim/plugin/packer_compiled.lua b/.config/nvim/plugin/packer_compiled.lua
index 6627d81..5b4e295 100644
--- a/.config/nvim/plugin/packer_compiled.lua
+++ b/.config/nvim/plugin/packer_compiled.lua
@@ -174,6 +174,11 @@ _G.packer_plugins = {
     path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
     url = "https://github.com/nvim-treesitter/nvim-treesitter"
   },
+  ["nvim-ts-autotag"] = {
+    loaded = true,
+    path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-ts-autotag",
+    url = "https://github.com/windwp/nvim-ts-autotag"
+  },
   ["nvim-web-devicons"] = {
     loaded = true,
     path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
-- 
cgit v1.2.3