-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify
:autocmd
patterns in ftdetect
- Loading branch information
1 parent
0801f29
commit 9b16b86
Showing
2 changed files
with
2 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript | ||
autocmd BufNewFile,BufRead *.cts setlocal filetype=typescript | ||
autocmd BufNewFile,BufRead *.mts setlocal filetype=typescript | ||
autocmd BufNewFile,BufRead *.ts,*.cts,*.mts setlocal filetype=typescript |
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,3 +1 @@ | ||
autocmd BufNewFile,BufRead *.tsx setlocal filetype=typescriptreact | ||
autocmd BufNewFile,BufRead *.mtsx setlocal filetype=typescriptreact | ||
autocmd BufNewFile,BufRead *.ctsx setlocal filetype=typescriptreact | ||
autocmd BufNewFile,BufRead *.tsx,*mtsx,*ctsx setlocal filetype=typescriptreact |