mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.1.0076: luau config file not detected
Problem: luau config file not detected
(lopy)
Solution: Detect it as jsonc
(lopy)
fixes: vim/vim#13960
closes: vim/vim#13970
de7f5bde6c
Co-authored-by: lopy <70210066+lopi-py@users.noreply.github.com>
This commit is contained in:
parent
21df0cdb88
commit
1d5f86f694
@ -1341,6 +1341,7 @@ local filename = {
|
||||
['.hintrc'] = 'jsonc',
|
||||
['.jsfmtrc'] = 'jsonc',
|
||||
['.jshintrc'] = 'jsonc',
|
||||
['.luaurc'] = 'jsonc',
|
||||
['.swrc'] = 'jsonc',
|
||||
['.justfile'] = 'just',
|
||||
Kconfig = 'kconfig',
|
||||
|
@ -341,7 +341,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file', 'org.eclipse.xyz.prefs'],
|
||||
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.geojson', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf'],
|
||||
\ 'json5': ['file.json5'],
|
||||
\ 'jsonc': ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json'],
|
||||
\ 'jsonc': ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json', '.luaurc'],
|
||||
\ 'jsonl': ['file.jsonl'],
|
||||
\ 'jsonnet': ['file.jsonnet', 'file.libsonnet'],
|
||||
\ 'jsp': ['file.jsp'],
|
||||
|
Loading…
Reference in New Issue
Block a user