From 7adad4fa58e397105f085571c834cfafd4a4b354 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Tue, 23 Jun 2026 12:37:13 +0200 Subject: [PATCH] Use typescript treesitter configuration when editing tsx files --- templates/nvim/lua/filetype.lua.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/nvim/lua/filetype.lua.j2 b/templates/nvim/lua/filetype.lua.j2 index 2066b7c..a5cf2f1 100644 --- a/templates/nvim/lua/filetype.lua.j2 +++ b/templates/nvim/lua/filetype.lua.j2 @@ -12,6 +12,10 @@ local ansible_keywords = { } vim.filetype.add { + extension = { + tsx = 'typescript' + }, + pattern = { ['playbook*.y(a?)ml'] = 'yaml.ansible', ['site*.y(a?)ml'] = 'yaml.ansible',