mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:9.1.0962: filetype: bun.lock file is not recognized
Problem: filetype: bun.lock file is not recognized
Solution: detect 'bun.lock' file as jsonc filetype
(Anton Kastritskii)
closes: vim/vim#16308
f07ae5b3bd
Co-authored-by: Anton Kastritskii <halloy52@gmail.com>
This commit is contained in:

committed by
Christian Clason

parent
46c7faa00b
commit
69fbb58385
@@ -1636,6 +1636,7 @@ local filename = {
|
||||
['.luaurc'] = 'jsonc',
|
||||
['.swrc'] = 'jsonc',
|
||||
['.vsconfig'] = 'jsonc',
|
||||
['bun.lock'] = 'jsonc',
|
||||
['.justfile'] = 'just',
|
||||
['justfile'] = 'just',
|
||||
['Justfile'] = 'just',
|
||||
|
@@ -391,7 +391,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', 'file.jupyterlab-settings', '.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'],
|
||||
\ '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'],
|
||||
\ 'jsonc': ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.jscsrc', '.vsconfig', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json', '.luaurc', 'bun.lock'],
|
||||
\ 'jsonl': ['file.jsonl'],
|
||||
\ 'jsonnet': ['file.jsonnet', 'file.libsonnet'],
|
||||
\ 'jsp': ['file.jsp'],
|
||||
|
Reference in New Issue
Block a user