This commit is contained in:
Adam Stankiewicz
2020-09-15 10:45:50 +02:00
parent 4314841aa4
commit d43d269bed
8 changed files with 34 additions and 16 deletions

View File

@@ -26,6 +26,16 @@ if has("comments")
setlocal commentstring=//\ %s
endif
if has('find_in_path')
let &l:includeexpr='substitute(v:fname, "^([^.])$", "\1.zig", "")'
let &l:include='\v(\@import>|\@cInclude>|^\s*\#\s*include)'
let &l:define='\v(<fn>|<const>|<var>|^\s*\#\s*define)'
endif
if has('eval')
execute 'setlocal path+=' . json_decode(system('zig env'))['std_dir']
endif
let b:undo_ftplugin = "setl et< ts< sts< sw< fo< sua< mp< com< cms<"
let &cpo = s:cpo_orig