mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2025-01-02 13:19:16 -06:00
Add twig filetype
See https://github.com/windwp/nvim-ts-autotag/pull/169 Signed-off-by: Price Hiller <price@orion-technologies.io> Co-authored-by: Ystri0n <164430108+Ystri0n@users.noreply.github.com>
This commit is contained in:
parent
629011167b
commit
6bf91cad7e
@ -15,6 +15,7 @@ It works with:
|
||||
- rescript
|
||||
- svelte
|
||||
- tsx
|
||||
- twig
|
||||
- typescript
|
||||
- vue
|
||||
- xml
|
||||
@ -75,7 +76,7 @@ local filetypes = {
|
||||
'xml',
|
||||
'php',
|
||||
'markdown',
|
||||
'astro', 'glimmer', 'handlebars', 'hbs'
|
||||
'astro', 'glimmer', 'handlebars', 'hbs', 'twig'
|
||||
}
|
||||
local skip_tag = {
|
||||
'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'slot',
|
||||
|
@ -12,7 +12,7 @@ M.tbl_filetypes = {
|
||||
'xml',
|
||||
'php',
|
||||
'markdown',
|
||||
'astro', 'glimmer', 'handlebars', 'hbs',
|
||||
'astro', 'glimmer', 'handlebars', 'hbs', 'twig',
|
||||
'htmldjango',
|
||||
'eruby',
|
||||
'templ',
|
||||
@ -32,6 +32,7 @@ local HTML_TAG = {
|
||||
'htmldjango',
|
||||
'markdown',
|
||||
'php',
|
||||
'twig',
|
||||
'xml',
|
||||
},
|
||||
start_tag_pattern = { 'start_tag', 'STag' },
|
||||
|
Loading…
Reference in New Issue
Block a user