mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 05:16:09 +00:00
vim-patch:9.0.0417: Jsonnet files are not recognized (#20119)
Problem: Jsonnet files are not recognized.
Solution: Add a pattern for Jsonnet files. (Cezary Drożak, closes vim/vim#11073,
closes vim/vim#11081)
2a4c885d54
This commit is contained in:
@@ -979,6 +979,9 @@ au BufNewFile,BufRead .babelrc,.eslintrc,.prettierrc,.firebaserc setf json
|
|||||||
" JSONC
|
" JSONC
|
||||||
au BufNewFile,BufRead *.jsonc setf jsonc
|
au BufNewFile,BufRead *.jsonc setf jsonc
|
||||||
|
|
||||||
|
" Jsonnet
|
||||||
|
au BufNewFile,BufRead *.jsonnet,*.libjsonnet setf jsonnet
|
||||||
|
|
||||||
" Julia
|
" Julia
|
||||||
au BufNewFile,BufRead *.jl setf julia
|
au BufNewFile,BufRead *.jl setf julia
|
||||||
|
|
||||||
|
@@ -557,6 +557,8 @@ local extension = {
|
|||||||
['json-patch'] = 'json',
|
['json-patch'] = 'json',
|
||||||
json5 = 'json5',
|
json5 = 'json5',
|
||||||
jsonc = 'jsonc',
|
jsonc = 'jsonc',
|
||||||
|
jsonnet = 'jsonnet',
|
||||||
|
libjsonnet = 'jsonnet',
|
||||||
jsp = 'jsp',
|
jsp = 'jsp',
|
||||||
jl = 'julia',
|
jl = 'julia',
|
||||||
kv = 'kivy',
|
kv = 'kivy',
|
||||||
|
@@ -285,6 +285,7 @@ let s:filename_checks = {
|
|||||||
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.babelrc', '.eslintrc', '.prettierrc', '.firebaserc', 'file.slnf'],
|
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.babelrc', '.eslintrc', '.prettierrc', '.firebaserc', 'file.slnf'],
|
||||||
\ 'json5': ['file.json5'],
|
\ 'json5': ['file.json5'],
|
||||||
\ 'jsonc': ['file.jsonc'],
|
\ 'jsonc': ['file.jsonc'],
|
||||||
|
\ 'jsonnet': ['file.jsonnet', 'file.libjsonnet'],
|
||||||
\ 'jsp': ['file.jsp'],
|
\ 'jsp': ['file.jsp'],
|
||||||
\ 'julia': ['file.jl'],
|
\ 'julia': ['file.jl'],
|
||||||
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
|
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
|
||||||
|
Reference in New Issue
Block a user