Improve guard so it works for no eof new line

This commit is contained in:
Adam Stankiewicz
2019-09-12 14:33:21 +02:00
parent 26790941f6
commit 4f3df59be7
563 changed files with 1131 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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