patch 9.1.1598: filetype: waybar config file is not recognized
Problem: filetype: waybar config file is not recognized
Solution: Detect */waybar/config file as jsonc filetype
(Furkan Sahin)
closes: #17915
Signed-off-by: Furkan Sahin <furkan-dev@proton.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
47a668bbe8
commit
a6e28b1d05
@ -2882,6 +2882,9 @@ au BufNewFile,BufRead *.vroom setf vroom
|
||||
" Vue.js Single File Component
|
||||
au BufNewFile,BufRead *.vue setf vue
|
||||
|
||||
" Waybar config
|
||||
au BufNewFile,BufRead */waybar/config setf jsonc
|
||||
|
||||
" WebAssembly
|
||||
au BufNewFile,BufRead *.wat,*.wast setf wat
|
||||
|
||||
|
||||
@ -406,7 +406,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
'.prettierrc', '.firebaserc', '.stylelintrc', '.lintstagedrc', 'file.slnf', 'file.sublime-project', 'file.sublime-settings', 'file.sublime-workspace',
|
||||
'file.bd', 'file.bda', 'file.xci', 'flake.lock', 'pack.mcmeta', 'deno.lock', '.swcrc'],
|
||||
json5: ['file.json5'],
|
||||
jsonc: ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.jscsrc', '.vsconfig', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json', '.luaurc', 'bun.lock', expand("$HOME/.config/VSCodium/User/settings.json")],
|
||||
jsonc: ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.jscsrc', '.vsconfig', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json', '.luaurc', 'bun.lock', expand("$HOME/.config/VSCodium/User/settings.json"), '/home/user/.config/waybar/config' ],
|
||||
jsonl: ['file.jsonl'],
|
||||
jsonnet: ['file.jsonnet', 'file.libsonnet'],
|
||||
jsp: ['file.jsp'],
|
||||
|
||||
@ -719,6 +719,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1598,
|
||||
/**/
|
||||
1597,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user