From ebf9ec9d62302ad95e677572562f5010eebd4e21 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 8 Jun 2019 13:34:40 +0200 Subject: Add zig support, closes #405 --- ftdetect/polyglot.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 48c6e61e..f66f72c5 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1449,3 +1449,10 @@ autocmd BufNewFile,BufRead *.xdc setfiletype xdc augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1 + augroup filetypedetect + " zig, from zig.vim in ziglang/zig.vim +au BufRead,BufNewFile *.zig set filetype=zig + augroup end +endif + -- cgit v1.2.3