mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-14 06:23:50 -05:00
Add zig support, closes #405
This commit is contained in:
18
ftplugin/zig.vim
Normal file
18
ftplugin/zig.vim
Normal 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
|
||||
Reference in New Issue
Block a user