From 6bf91cad7e12045e53a04b43c86ba538e96f829a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20DEVILLE?= <164430108+Ystri0n@users.noreply.github.com> Date: Sat, 27 Apr 2024 13:09:42 +0200 Subject: [PATCH] Add twig filetype See https://github.com/windwp/nvim-ts-autotag/pull/169 Signed-off-by: Price Hiller Co-authored-by: Ystri0n <164430108+Ystri0n@users.noreply.github.com> --- README.md | 3 ++- lua/nvim-ts-autotag/internal.lua | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5a1c6ab..6a61a27 100644 --- a/README.md +++ b/README.md @@ -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', diff --git a/lua/nvim-ts-autotag/internal.lua b/lua/nvim-ts-autotag/internal.lua index 25a3b46..f4edda1 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', - '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' },