From 5aad8c77cf807f3784be67c012ba021ed3c19503 Mon Sep 17 00:00:00 2001 From: JohnCosta27 Date: Sat, 20 Aug 2022 21:43:00 +0100 Subject: [PATCH] adding auto tag --- nvchad/chadrc.lua | 5 +++++ nvchad/plugins/init.lua | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/nvchad/chadrc.lua b/nvchad/chadrc.lua index 6d4458c2..cf686874 100644 --- a/nvchad/chadrc.lua +++ b/nvchad/chadrc.lua @@ -18,6 +18,11 @@ M.plugins = { }, }, ["williamboman/mason"] = override.mason, + ["nvim-treesitter/nvim-treesitter"] = { + autotag = { + enable = true, + } + } }, options = { lspconfig = { diff --git a/nvchad/plugins/init.lua b/nvchad/plugins/init.lua index 8140c872..1afe61c5 100644 --- a/nvchad/plugins/init.lua +++ b/nvchad/plugins/init.lua @@ -7,5 +7,16 @@ return { require "plugins.configs.lspconfig" require "custom.plugins.lspconfig" end + }, + ["windwp/nvim-ts-autotag"] = { + ft = { "html", "javascriptreact", "typescriptreact"}, + after = "nvim-treesitter", + config = function() + local present, autotag = pcall(require, "nvim-ts-autotag") + + if present then + autotag.setup() + end + end } }