diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-15 10:45:50 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-15 10:45:50 +0200 |
commit | d43d269bedbb6bcf725eaf5bb5b3c5a0bcfcb0c0 (patch) | |
tree | 8e7702293cc2ced66ac83e4bbe4ae537f7312f8e /ftplugin | |
parent | 4314841aa4772d98b186636bdbf34fcf48c74275 (diff) | |
download | vim-polyglot-d43d269bedbb6bcf725eaf5bb5b3c5a0bcfcb0c0.tar.gz vim-polyglot-d43d269bedbb6bcf725eaf5bb5b3c5a0bcfcb0c0.zip |
Update
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/zig.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ftplugin/zig.vim b/ftplugin/zig.vim index 1675d20c..675a3bcf 100644 --- a/ftplugin/zig.vim +++ b/ftplugin/zig.vim @@ -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 |