diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-01-14 18:55:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-14 18:55:06 +0800 |
commit | 69ad6b12ec473a54f09a11596da724178185eb7a (patch) | |
tree | a37137b7107cda6552d0acac73f362c739a727cc /runtime/lua/vim | |
parent | c5f93d7ab04f93db1470d58ca1f70e947e716c2b (diff) | |
download | rneovim-69ad6b12ec473a54f09a11596da724178185eb7a.tar.gz rneovim-69ad6b12ec473a54f09a11596da724178185eb7a.tar.bz2 rneovim-69ad6b12ec473a54f09a11596da724178185eb7a.zip |
vim-patch:9.1.1010: filetype: VisualCode setting file not recognized (#32003)
Problem: filetype: VisualCode setting file not recognized
Solution: detect json files in VSCode config directory as jsonc filetype
(Konfekt)
closes: vim/vim#16400
https://github.com/vim/vim/commit/c200f53cbb03fa11e489a27791d5b9dfc34a6564
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
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 bc866db399..1960bca52b 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -2374,6 +2374,8 @@ local pattern = { ['%.html%.m4$'] = 'htmlm4', ['^JAM.*%.'] = starsetf('jam'), ['^Prl.*%.'] = starsetf('jam'), + ['^${HOME}/.*/Code/User/.*%.json$'] = 'jsonc', + ['^${HOME}/.*/VSCodium/User/.*%.json$'] = 'jsonc', ['%.properties_..$'] = 'jproperties', ['%.properties_.._..$'] = 'jproperties', ['%.properties_.._.._'] = starsetf('jproperties'), |