From c2834033b031eca0353ddaf0edad0e32f87c1ef9 Mon Sep 17 00:00:00 2001
From: Akos Horvath <koma@koma.sh>
Date: Sun, 24 Sep 2023 22:22:08 +0200
Subject: [PATCH] add autotag plugin

---
 init.lua       | 8 ++++++--
 lua/plugin.lua | 4 +++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/init.lua b/init.lua
index d1b890f..dc715a6 100644
--- a/init.lua
+++ b/init.lua
@@ -142,8 +142,12 @@ end
 -- See `:help nvim-treesitter`
 require('nvim-treesitter.configs').setup {
   -- Add languages to be installed here that you want installed for treesitter
-  ensure_installed = { 'c', 'cpp', 'rust', 'go', 'lua', 'python', 'rust', 'typescript', 'help', 'vim' },
-
+  ensure_installed = { 'c', 'cpp', 'rust', 'go', 'lua', 'python', 'rust', 'typescript', 'tsx', 'help', 'vim',  },
+  autotag = {
+    enable = true,
+    enable_close = true,
+    enable_close_on_slash = true,
+  },
   highlight = { enable = true },
   indent = { enable = true, disable = { 'python', 'c', 'cpp' } },
   incremental_selection = {
diff --git a/lua/plugin.lua b/lua/plugin.lua
index 9930dd2..ac586ce 100644
--- a/lua/plugin.lua
+++ b/lua/plugin.lua
@@ -14,7 +14,7 @@ require('packer').startup({function(use)
   use {
     -- Useful status updates for LSP
     'j-hui/fidget.nvim',
-    branch = 'legacy',
+    -- branch = 'legacy',
   }
 
   use { -- LSP Configuration & Plugins
@@ -42,6 +42,8 @@ require('packer').startup({function(use)
     end
   }
 
+  use "windwp/nvim-ts-autotag"
+
   use {
     'phaazon/hop.nvim',
     branch = 'v2', -- optional but strongly recommended