adding auto tag

This commit is contained in:
2022-08-20 21:43:00 +01:00
parent 384242432f
commit 5aad8c77cf
2 changed files with 16 additions and 0 deletions

View File

@ -18,6 +18,11 @@ M.plugins = {
},
},
["williamboman/mason"] = override.mason,
["nvim-treesitter/nvim-treesitter"] = {
autotag = {
enable = true,
}
}
},
options = {
lspconfig = {

View File

@ -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
}
}