Add zig support, closes #405

This commit is contained in:
Adam Stankiewicz
2019-06-08 13:34:40 +02:00
parent 9caa678708
commit ebf9ec9d62
9 changed files with 903 additions and 1 deletions

18
ftplugin/zig.vim Normal file
View File

@@ -0,0 +1,18 @@
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'zig') != -1
finish
endif
" Only do this when not done yet for this buffer
if (exists("b:did_ftplugin"))
finish
endif
let b:did_ftplugin = 1
set expandtab
set tabstop=4
set shiftwidth=4
setlocal suffixesadd=.zig
setlocal commentstring=//\ %s
setlocal makeprg=zig\ build