From ee4f51587d8e306b2d9a4b0067c572a447b34b60 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 18 Aug 2020 23:06:10 +0200 Subject: Add ftdetect for jsonnet --- ftdetect/polyglot.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 3a843e68..dfcab62f 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -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 \ No newline at end of file -- cgit v1.2.3