Closed
Description
I load my plugins with Pathogen, meaning they're loaded in alphabetical order. This plugin detects TSX like so:
autocmd BufNewFile,BufRead *.ts,*.tsx setlocal filetype=typescript
ianks/vim-tsx
detects TSX like so:
autocmd BufNewFile,BufRead *.tsx set filetype=typescript.tsx
Since this plugin's autocmd
detection can be run after the tsx
plugin is loaded, it effectively sets the wrong filetype to typescript
instead of typescript.tsx
.
In my opinion, this plugin shouldn't try to work on TSX files. Let the TSX plugin do that. But if y'all don't agree, at least try to detect whether the TSX plugin is loaded and only handle *.tsx
files if it is not.
Metadata
Metadata
Assignees
Labels
No labels