diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-09-27 13:03:28 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2022-09-27 13:04:34 +0200 |
commit | fe0727a1bfebdb8dc27bd8c276566f203b4d6a18 (patch) | |
tree | 4270b086b4c63d2a1d1a311386e611888bfc2623 /runtime/lua/vim | |
parent | e176f9dacf28f56e91fcbc92f392228588a46c85 (diff) | |
download | rneovim-fe0727a1bfebdb8dc27bd8c276566f203b4d6a18.tar.gz rneovim-fe0727a1bfebdb8dc27bd8c276566f203b4d6a18.tar.bz2 rneovim-fe0727a1bfebdb8dc27bd8c276566f203b4d6a18.zip |
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)
https://github.com/vim/vim/commit/7fc6c0e4dab4e80b9806a973936af54276468513
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 66b89a7078..a7a34a54cd 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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', |