diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-16 08:22:51 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-04-16 08:32:08 +0800 |
commit | ca2f24cbbd52f1f6b73d0e5fc19b11bade606e45 (patch) | |
tree | 96e9b0fadb0e7578795d69acd2202fa348ac92ae /runtime/lua/vim | |
parent | fcf17c88590b4fb471821d69b1e30796129bebc1 (diff) | |
download | rneovim-ca2f24cbbd52f1f6b73d0e5fc19b11bade606e45.tar.gz rneovim-ca2f24cbbd52f1f6b73d0e5fc19b11bade606e45.tar.bz2 rneovim-ca2f24cbbd52f1f6b73d0e5fc19b11bade606e45.zip |
vim-patch:9.1.0324: filetype: some json files are not recognized
Problem: filetype: some json files are not recognized
Solution: Detect '.jscsrc' and '.vsconfig' as jsonc filetype
(Wu, Zhenyu)
See:
- https://github.com/microsoft/PowerToys/blob/main/.vsconfig
- https://jscs-dev.github.io/
closes: vim/vim#14452
https://github.com/vim/vim/commit/c59a8648b2d8b3e17f12cd45f74a31b1aa385d2d
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
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 d622566d55..8b800cf859 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1437,10 +1437,12 @@ local filename = { ['.babelrc'] = 'jsonc', ['.eslintrc'] = 'jsonc', ['.hintrc'] = 'jsonc', + ['.jscsrc'] = 'jsonc', ['.jsfmtrc'] = 'jsonc', ['.jshintrc'] = 'jsonc', ['.luaurc'] = 'jsonc', ['.swrc'] = 'jsonc', + ['.vsconfig'] = 'jsonc', ['.justfile'] = 'just', Kconfig = 'kconfig', ['Kconfig.debug'] = 'kconfig', |