Skip to content

Commit

Permalink
Add twig filetype
Browse files Browse the repository at this point in the history
See windwp#169

Signed-off-by: Price Hiller <[email protected]>
Co-authored-by: Ystri0n <[email protected]>
  • Loading branch information
Léo DEVILLE authored and PriceHiller committed May 19, 2024
1 parent 0121209 commit 42c89e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ It works with:
- rescript
- svelte
- tsx
- twig
- typescript
- vue
- xml
Expand Down Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion lua/nvim-ts-autotag/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ M.tbl_filetypes = {
'xml',
'php',
'markdown',
'astro', 'glimmer', 'handlebars', 'hbs',
'astro', 'glimmer', 'handlebars', 'hbs', 'twig',
'htmldjango',
'eruby',
'templ',
Expand All @@ -29,6 +29,7 @@ local HTML_TAG = {
'htmldjango',
'markdown',
'php',
'twig',
'xml',
},
start_tag_pattern = { 'start_tag', 'STag' },
Expand Down

0 comments on commit 42c89e1

Please sign in to comment.