mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
vim-patch:9.0.0602: new TypeScript extensions are not recognized
Problem: New TypeScript extensions are not recognized.
Solution: Recognize .mts and .cts files. (closes vim/vim#11237)
7fc6c0e4da
This commit is contained in:
@@ -1021,6 +1021,8 @@ local extension = {
|
||||
ts = function(path, bufnr)
|
||||
return M.getlines(bufnr, 1):find('<%?xml') and 'xml' or 'typescript'
|
||||
end,
|
||||
mts = 'typescript',
|
||||
cts = 'typescript',
|
||||
tsx = 'typescriptreact',
|
||||
uc = 'uc',
|
||||
uit = 'uil',
|
||||
|
Reference in New Issue
Block a user