mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2025-01-01 13:59:13 -06:00
Add astro filetype (#89)
* Add astro filetype to internal * Remove autoformatting, update README - Revert formatting to original - Update supported filetypes in README
This commit is contained in:
parent
0716740e00
commit
cac97f3b47
19
README.md
19
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',
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user