diff --git a/README.md b/README.md index e015535..364fb3b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,22 @@ Use treesitter to **autoclose** and **autorename** html tag -It work with html,tsx,vue,svelte,php,rescript. +It works with: + +- astro +- glimmer +- handlebars +- html +- javascript +- jsx +- markdown +- php +- rescript +- svelte +- tsx +- typescript +- vue +- xml ## Usage @@ -60,7 +75,7 @@ local filetypes = { 'xml', 'php', 'markdown', - 'glimmer','handlebars','hbs' + 'astro', 'glimmer', 'handlebars', 'hbs' } local skip_tags = { 'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'slot', diff --git a/lua/nvim-ts-autotag/internal.lua b/lua/nvim-ts-autotag/internal.lua index 4bc73c0..be08929 100644 --- a/lua/nvim-ts-autotag/internal.lua +++ b/lua/nvim-ts-autotag/internal.lua @@ -12,7 +12,7 @@ M.tbl_filetypes = { 'xml', 'php', 'markdown', - 'glimmer', 'handlebars', 'hbs', + 'astro', 'glimmer', 'handlebars', 'hbs', 'htmldjango' } @@ -26,7 +26,14 @@ local ERROR_TAG = 'ERROR' -- stylua: ignore local HTML_TAG = { - filetypes = { 'html', 'php', 'xml', 'markdown', 'htmldjango' }, + filetypes = { + 'astro', + 'html', + 'htmldjango', + 'markdown', + 'php', + 'xml', + }, start_tag_pattern = 'start_tag', start_name_tag_pattern = 'tag_name', end_tag_pattern = "end_tag",