Use tsx tree-sitter queries for tsx files

These changes revert the changes made in 7adad4fa58
This commit is contained in:
Sonny Bakker 2026-06-30 10:41:23 +02:00
parent 7adad4fa58
commit e60d816097
2 changed files with 1 additions and 5 deletions

View file

@ -12,10 +12,6 @@ local ansible_keywords = {
}
vim.filetype.add {
extension = {
tsx = 'typescript'
},
pattern = {
['playbook*.y(a?)ml'] = 'yaml.ansible',
['site*.y(a?)ml'] = 'yaml.ansible',

View file

@ -5,7 +5,7 @@
local tree_sitter_config = require('nvim-treesitter')
local ensure_installed = {
'lua', 'yaml', 'bash', 'python', 'javascript', 'typescript', 'jsx', 'css', 'scss',
'lua', 'yaml', 'bash', 'python', 'javascript', 'typescript', 'jsx', 'tsx', 'css', 'scss',
'html', 'htmldjango', 'sql', 'json', 'dockerfile', 'markdown', 'rst', 'tmux',
'xml', 'toml', 'editorconfig', 'diff', 'gitcommit', 'git_config', 'gitignore',
'gitattributes', 'make', 'nginx', 'vim', 'vimdoc', 'passwd', 'regex'