Files
vim-polyglot/ftplugin/zig.vim
2019-09-27 19:47:32 +02:00

19 lines
349 B
VimL

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