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:
Christian Clason
2022-09-27 13:03:28 +02:00
parent e176f9dacf
commit fe0727a1bf
3 changed files with 10 additions and 4 deletions

View File

@@ -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',