mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Add ftdetect for jsonnet
This commit is contained in:
1
build.py
1
build.py
@@ -253,6 +253,7 @@ language("Vue", extra_extensions=[".wpy"])
|
||||
language("XDC", extensions=[".xdc"])
|
||||
language("Zig", extra_extensions=[".zir"])
|
||||
language("Zir", extensions=[".zir"], polyglot="zig", filetype="zir")
|
||||
language("Jsonnet")
|
||||
|
||||
lines.append('" restore Vi compatibility settings')
|
||||
lines.append('let &cpo = s:cpo_save')
|
||||
|
||||
@@ -1142,6 +1142,11 @@ if index(g:polyglot_disabled, 'zig') == -1
|
||||
au BufNewFile,BufRead *.zir set ft=zir
|
||||
endif
|
||||
|
||||
if index(g:polyglot_disabled, 'jsonnet') == -1
|
||||
au BufNewFile,BufRead *.jsonnet set ft=jsonnet
|
||||
au BufNewFile,BufRead *.libsonnet set ft=jsonnet
|
||||
endif
|
||||
|
||||
" restore Vi compatibility settings
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
Reference in New Issue
Block a user