summaryrefslogblamecommitdiffstats
path: root/ftplugin/zig.vim
blob: 38008957f6021a2bbbd060a6d8326b10a6e740b6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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