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,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
if !polyglot#util#IsEnabled('html5', expand('<sfile>:p'))
finish
endif
" Vim indent script for HTML
" Header: "{{{
@@ -1060,5 +1062,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: fdm=marker ts=8 sw=2 tw=78
endif

View File

@@ -1,9 +1,9 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p'))
finish
endif
if get(g:, 'vim_jsx_pretty_disable_js', 0)
finish
endif
source <sfile>:h/jsx.vim
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p'))
finish
endif
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
"
@@ -42,5 +44,3 @@ function GetJavascriptGraphQLIndent()
return eval(b:indentexpr_base)
endfunction
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p'))
finish
endif
source <sfile>:h/jsx.vim
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p'))
finish
endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim indent file
@@ -29,5 +31,3 @@ endfunction
let &cpo = s:keepcpo
unlet s:keepcpo
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1
if !polyglot#util#IsEnabled('objc', expand('<sfile>:p'))
finish
endif
" Vim indent file
" Language: Objective-C
@@ -93,5 +95,3 @@ endfunction
" Restore 'cpo' options
let &cpo = s:save_cpo
unlet s:save_cpo
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p'))
finish
endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim indent file
@@ -36,5 +38,3 @@ endfunction
let &cpo = s:keepcpo
unlet s:keepcpo
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p'))
finish
endif
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
"
@@ -42,5 +44,3 @@ function GetTypescriptGraphQLIndent()
return eval(b:indentexpr_base)
endfunction
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p'))
finish
endif
source <sfile>:h/tsx.vim
endif