diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 13:34:40 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 13:34:40 +0200 |
commit | ebf9ec9d62302ad95e677572562f5010eebd4e21 (patch) | |
tree | a94841c36a39f63f6a1535a7a4117e101b79752c /ftplugin | |
parent | 9caa678708a97022ba44f0bf86de22b07e9bde86 (diff) | |
download | vim-polyglot-ebf9ec9d62302ad95e677572562f5010eebd4e21.tar.gz vim-polyglot-ebf9ec9d62302ad95e677572562f5010eebd4e21.zip |
Add zig support, closes #405
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/zig.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ftplugin/zig.vim b/ftplugin/zig.vim new file mode 100644 index 00000000..38008957 --- /dev/null +++ b/ftplugin/zig.vim @@ -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 |