summaryrefslogtreecommitdiffstats
path: root/autoload/zig
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-09-12 14:33:21 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-09-12 15:08:44 +0200
commit4f3df59be709bf0d5c5c67dc804fde49abdc2700 (patch)
tree71b86b1d2c678dd2bb8411c61f83fd1cd3ec691d /autoload/zig
parent26790941f6d4ceedbf6324eb3712949eb614908f (diff)
downloadvim-polyglot-4.0.3.tar.gz
vim-polyglot-4.0.3.zip
Improve guard so it works for no eof new linev4.0.3
Diffstat (limited to '')
-rw-r--r--autoload/zig/config.vim2
-rw-r--r--autoload/zig/fmt.vim2
-rw-r--r--autoload/zig/list.vim2
-rw-r--r--autoload/zig/util.vim2
4 files changed, 8 insertions, 0 deletions
diff --git a/autoload/zig/config.vim b/autoload/zig/config.vim
index f208af45..328ba100 100644
--- a/autoload/zig/config.vim
+++ b/autoload/zig/config.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
+
function! zig#config#ListTypeCommands() abort
return get(g:, 'zig_list_type_commands', {})
endfunction
@@ -38,4 +39,5 @@ endfunction
function! zig#config#Debug() abort
return get(g:, 'zig_debug', [])
endfunction
+
endif
diff --git a/autoload/zig/fmt.vim b/autoload/zig/fmt.vim
index 47c49cd4..d3aa9641 100644
--- a/autoload/zig/fmt.vim
+++ b/autoload/zig/fmt.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
+
" Adapted from fatih/vim-go: autoload/go/fmt.vim
"
" Copyright 2011 The Go Authors. All rights reserved.
@@ -165,4 +166,5 @@ function! zig#fmt#ToggleFmtAutoSave() abort
endfunction
" vim: sw=2 ts=2 et
+
endif
diff --git a/autoload/zig/list.vim b/autoload/zig/list.vim
index 9716e8c9..bdd43376 100644
--- a/autoload/zig/list.vim
+++ b/autoload/zig/list.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
+
" Adapted from fatih/vim-go: autoload/go/list.vim
"
" Copyright 2011 The Go Authors. All rights reserved.
@@ -157,4 +158,5 @@ function! zig#list#Type(for) abort
endfunction
" vim: sw=2 ts=2 et
+
endif
diff --git a/autoload/zig/util.vim b/autoload/zig/util.vim
index 8545d48b..bc454dd9 100644
--- a/autoload/zig/util.vim
+++ b/autoload/zig/util.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
+
" Adapted from vim-go: autoload/go/util.vim
"
" Copyright 2011 The Go Authors. All rights reserved.
@@ -389,4 +390,5 @@ function! zig#util#HasDebug(flag)
endfunction
" vim: sw=2 ts=2 et
+
endif