Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix(vim): work around unwanted "javascriptreact"/"typescriptreact" fi…
…letypes See: vim/vim#4830 and specifically my comment here: vim/vim#4830 (comment)
- Loading branch information
Showing
4 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
autocmd BufNewFile,BufRead *.tsx noautocmd set filetype=typescript.tsx | ||
autocmd BufNewFile,BufRead *.tsx noautocmd set filetype+=.tsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
" Work around filetype that landed in upstream Vim here: | ||
" https://github.com/vim/vim/issues/4830 | ||
execute 'noautocmd set filetype=' . substitute(&filetype, 'javascriptreact', 'javascript', '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
" Work around filetype that landed in upstream Vim here: | ||
" https://github.com/vim/vim/issues/4830 | ||
execute 'noautocmd set filetype=' . substitute(&filetype, 'typescriptreact', 'typescript', '') |