Respect symlinks for resolving vim-polyglot as fallback, closes #605

This commit is contained in:
Adam Stankiewicz
2020-10-25 03:19:58 +01:00
parent d73c4d1562
commit cbde2571d4
1293 changed files with 2073 additions and 10649 deletions

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'autoload/zig/config.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('zig', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
function! zig#config#ListTypeCommands() abort
return get(g:, 'zig_list_type_commands', {})
@@ -46,5 +41,3 @@ endfunction
function! zig#config#Debug() abort
return get(g:, 'zig_debug', [])
endfunction
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'autoload/zig/fmt.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('zig', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
" Adapted from fatih/vim-go: autoload/go/fmt.vim
"
@@ -173,5 +168,3 @@ function! zig#fmt#ToggleFmtAutoSave() abort
endfunction
" vim: sw=2 ts=2 et
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'autoload/zig/list.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('zig', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
" Adapted from fatih/vim-go: autoload/go/list.vim
"
@@ -165,5 +160,3 @@ function! zig#list#Type(for) abort
endfunction
" vim: sw=2 ts=2 et
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'autoload/zig/util.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('zig', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
" Adapted from vim-go: autoload/go/util.vim
"
@@ -397,5 +392,3 @@ function! zig#util#HasDebug(flag)
endfunction
" vim: sw=2 ts=2 et
endif