mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Respect symlinks for resolving vim-polyglot as fallback, closes #605
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
|
||||
if !polyglot#util#IsEnabled('haskell', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
setlocal comments=s1fl:{-,mb:-,ex:-},:--
|
||||
setlocal iskeyword+=-,.,*
|
||||
setlocal commentstring=--\ %s
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1
|
||||
if !polyglot#util#IsEnabled('cjsx', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
if exists("loaded_matchit")
|
||||
let b:match_ignorecase = 0
|
||||
let b:match_words = '(:),\[:\],{:},<:>,' .
|
||||
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
|
||||
if !polyglot#util#IsEnabled('haskell', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:--
|
||||
setlocal iskeyword+='
|
||||
|
||||
endif
|
||||
|
||||
@@ -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
|
||||
|
||||
" Maintainer: othree <othree@gmail.com>
|
||||
" URL: http://github.com/othree/html5.vim
|
||||
@@ -9,5 +11,3 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
|
||||
" setlocal iskeyword+=-
|
||||
|
||||
setlocal commentstring=<!--%s-->
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1
|
||||
if !polyglot#util#IsEnabled('idris', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
setlocal iskeyword+='
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris2') == -1
|
||||
if !polyglot#util#IsEnabled('idris2', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
setlocal iskeyword+='
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
|
||||
if !polyglot#util#IsEnabled('javascript', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" Vim filetype plugin file
|
||||
" Language: JavaScript
|
||||
@@ -12,5 +14,3 @@ if exists('b:undo_ftplugin')
|
||||
else
|
||||
let b:undo_ftplugin = 'setlocal iskeyword< suffixesadd<'
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 ftplugin file
|
||||
@@ -31,5 +33,3 @@ augroup jsx_comment
|
||||
augroup end
|
||||
|
||||
setlocal suffixesadd+=.jsx
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
|
||||
if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" Copyright (c) 2018 rhysd
|
||||
"
|
||||
@@ -483,5 +485,3 @@ endfunction
|
||||
if !exists(':LLI')
|
||||
command! -buffer -nargs=? -bar -complete=file LLI call <SID>run_lli(<f-args>)
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
|
||||
if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
if !exists('g:puppet_align_hashes')
|
||||
let g:puppet_align_hashes = 1
|
||||
@@ -7,5 +9,3 @@ endif
|
||||
if g:puppet_align_hashes
|
||||
inoremap <buffer> <silent> => =><Esc>:call puppet#align#AlignHashrockets()<CR>$a
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -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
|
||||
|
||||
" modified from html.vim
|
||||
" For matchit plugin
|
||||
@@ -28,5 +30,3 @@ augroup jsx_comment
|
||||
augroup end
|
||||
|
||||
setlocal suffixesadd+=.tsx
|
||||
|
||||
endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cpp-modern') == -1
|
||||
if !polyglot#util#IsEnabled('cpp-modern', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" ==============================================================================
|
||||
" Vim syntax file
|
||||
@@ -66,5 +68,3 @@ if get(g:, 'cpp_simple_highlight', 0)
|
||||
hi link cTypedef Statement
|
||||
hi link cLabel Statement
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1
|
||||
if !polyglot#util#IsEnabled('cjsx', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
if exists('b:current_syntax')
|
||||
let s:current_syntax=b:current_syntax
|
||||
@@ -27,5 +29,3 @@ hi def link cjsxTagName Function
|
||||
hi def link cjsxEntity Statement
|
||||
hi def link cjsxEntityPunct Type
|
||||
hi def link cjsxAttribProperty Type
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cpp-modern') == -1
|
||||
if !polyglot#util#IsEnabled('cpp-modern', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" ==============================================================================
|
||||
" Vim syntax file
|
||||
@@ -208,5 +210,3 @@ if get(g:, 'cpp_simple_highlight', 0)
|
||||
hi link cppExceptions Statement
|
||||
hi link cppStorageClass Statement
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1
|
||||
if !polyglot#util#IsEnabled('dhall', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" store and remove current syntax value
|
||||
let old_syntax = b:current_syntax
|
||||
@@ -13,5 +15,3 @@ hi def link quasiQuote Underlined
|
||||
|
||||
" restore current syntax value
|
||||
let b:current_syntax = old_syntax
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
|
||||
if !polyglot#util#IsEnabled('scala', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" Extends standard help syntax with highlighting of Scala code.
|
||||
"
|
||||
@@ -14,5 +16,3 @@ if has('conceal')
|
||||
else
|
||||
syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -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 syntax file
|
||||
" Language: HTML (version 5.1)
|
||||
@@ -196,5 +198,3 @@ syn keyword htmlArg contained veryverythickmathspace veryverythinmathspace voffs
|
||||
" https://github.com/w3c/html/issues/694
|
||||
syntax region htmlComment start=+<!--+ end=+-->+ contains=@Spell
|
||||
syntax region htmlComment start=+<!DOCTYPE+ keepend end=+>+
|
||||
|
||||
endif
|
||||
|
||||
@@ -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 syntax file
|
||||
" Language: WAI-ARIA
|
||||
@@ -75,5 +77,3 @@ syn match htmlArg contained "\<aria-\%(\|labelledby\|owns\|posinset\|setsize\
|
||||
syn match htmlArg contained "\<aria-\%(\|colcount\|colindex\|colspan\)\>"
|
||||
syn match htmlArg contained "\<aria-\%(\|rowcount\|rowindex\|rowspan\)\>"
|
||||
|
||||
|
||||
endif
|
||||
|
||||
@@ -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 syntax file
|
||||
" Language: Electron
|
||||
@@ -15,5 +17,3 @@ syn keyword htmlArg contained useragent disablewebsecurity partition allowpopups
|
||||
syn keyword htmlArg contained webpreferences blinkfeatures disableblinkfeatures
|
||||
syn keyword htmlArg contained guestinstance disableguestresize
|
||||
|
||||
|
||||
endif
|
||||
|
||||
@@ -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 syntax file
|
||||
" Language: RDFa
|
||||
@@ -11,5 +13,3 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
|
||||
" RDFa
|
||||
" http://www.w3.org/TR/rdfa-syntax/#s_syntax
|
||||
syn keyword htmlArg contained about content datatype href inlist prefix property rel resource rev src typeof vocab
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1
|
||||
if !polyglot#util#IsEnabled('idris', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" This script allows for unicode concealing of certain characters
|
||||
" For instance -> goes to →
|
||||
@@ -78,5 +80,3 @@ hi link idrNiceOperator Operator
|
||||
hi! link Conceal Operator
|
||||
setlocal conceallevel=2
|
||||
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris2') == -1
|
||||
if !polyglot#util#IsEnabled('idris2', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" This script allows for unicode concealing of certain characters
|
||||
" For instance -> goes to →
|
||||
@@ -78,5 +80,3 @@ hi link idrNiceOperator Operator
|
||||
hi! link Conceal Operator
|
||||
setlocal conceallevel=2
|
||||
|
||||
|
||||
endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
"
|
||||
@@ -60,5 +62,3 @@ elseif graphql#has_syntax_group('javaScriptStringT')
|
||||
syn cluster javaScriptEmbededExpr add=graphqlTaggedTemplate
|
||||
syn cluster graphqlTaggedTemplate add=graphqlTemplateString
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -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 syntax file
|
||||
" Language: HTML5 New Stuff
|
||||
@@ -49,5 +51,3 @@ syn keyword javascriptDomElemAttrs indeterminate
|
||||
|
||||
" select https://w3c.github.io/selection-api/#extensions-to-globaleventhandlers
|
||||
syn keyword javascriptDomElemAttrs onselectstart onselectchange
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript-sql') == -1
|
||||
if !polyglot#util#IsEnabled('javascript-sql', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" Vim plugin
|
||||
" Language: JavaScript
|
||||
@@ -22,5 +24,3 @@ hi def link sqlTaggedTemplate jsTaggedTemplate
|
||||
|
||||
syn cluster jsExpression add=sqlTaggedTemplate
|
||||
syn cluster sqlTaggedTemplate add=sqlTemplateString
|
||||
|
||||
endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
|
||||
if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! after/syntax/javascript/graphql.vim
|
||||
|
||||
endif
|
||||
|
||||
@@ -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 syntax file
|
||||
@@ -55,5 +57,3 @@ let b:current_syntax = 'javascript.jsx'
|
||||
|
||||
let &cpo = s:jsx_cpo
|
||||
unlet s:jsx_cpo
|
||||
|
||||
endif
|
||||
|
||||
@@ -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
|
||||
|
||||
let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0)
|
||||
|
||||
@@ -221,5 +223,3 @@ if s:vim_jsx_pretty_colorful_config == 1
|
||||
highlight def link jsArrowFuncArgs Type
|
||||
highlight def link jsFuncArgs Type
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
|
||||
if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" Copyright (c) 2018 rhysd
|
||||
"
|
||||
@@ -22,5 +24,3 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
|
||||
|
||||
syn keyword llvmKeyword attributes
|
||||
syn match llvmNoName /#\d\+\>/
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mdx') == -1
|
||||
if !polyglot#util#IsEnabled('mdx', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
|
||||
" based on mxw/vim-jsx
|
||||
@@ -41,5 +43,3 @@ syn cluster jsExpression add=jsxRegion
|
||||
|
||||
" Allow jsxRegion to contain reserved words.
|
||||
syn cluster javascriptNoReserved add=jsxRegion
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1
|
||||
if !polyglot#util#IsEnabled('mathematica', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
"Vim conceal file
|
||||
" Language: Mathematica
|
||||
@@ -1442,5 +1444,3 @@ endif
|
||||
hi! link Conceal Normal
|
||||
setlocal conceallevel=2
|
||||
|
||||
|
||||
endif
|
||||
|
||||
@@ -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
|
||||
|
||||
" ARC type modifiers
|
||||
syn keyword objcTypeModifier __bridge __bridge_retained __bridge_transfer __autoreleasing __strong __weak __unsafe_unretained
|
||||
@@ -19,5 +21,3 @@ syn match objcDirective "@property\|@synthesize\|@dynamic\|@package"
|
||||
|
||||
" Highlight property attributes as if they were type modifiers
|
||||
hi def link objcPropertyAttribute objcTypeModifier
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1
|
||||
|
||||
|
||||
if !polyglot#util#IsEnabled('reason', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
|
||||
@@ -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>
|
||||
"
|
||||
@@ -33,5 +35,3 @@ if exists('s:current_syntax')
|
||||
endif
|
||||
|
||||
syntax region graphqlExtensionPoint matchgroup=Noise start=+\[%graphql\_s*{|+lc=10 end=+|}\_s*]+he=s+1 contains=@GraphQLSyntax keepend
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rspec') == -1
|
||||
if !polyglot#util#IsEnabled('rspec', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
"
|
||||
" An rspec syntax file
|
||||
@@ -189,5 +191,3 @@ highlight link rspecMatchers Function
|
||||
highlight link rspecMessageExpectation Function
|
||||
|
||||
let b:current_syntax = 'rspec'
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yard') == -1
|
||||
if !polyglot#util#IsEnabled('yard', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" Ruby syntax extensions for highlighting YARD documentation.
|
||||
"
|
||||
@@ -127,5 +129,3 @@ hi def link yardParametricType yardComment
|
||||
hi def link yardArrow yardComment
|
||||
hi def link yardHashAngle yardComment
|
||||
hi def link yardHashCurly yardComment
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||
if !polyglot#util#IsEnabled('rust', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
scriptencoding utf-8
|
||||
|
||||
@@ -41,5 +43,3 @@ if !get(g:, 'rust_conceal_mod_path', 0)
|
||||
endif
|
||||
|
||||
" vim: set et sw=4 sts=4 ts=8:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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 syntax file
|
||||
@@ -59,5 +61,3 @@ let b:current_syntax = 'typescript.tsx'
|
||||
|
||||
let &cpo = s:jsx_cpo
|
||||
unlet s:jsx_cpo
|
||||
|
||||
endif
|
||||
|
||||
@@ -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>
|
||||
"
|
||||
@@ -45,5 +47,3 @@ hi def link graphqlTemplateExpression typescriptTemplateSubstitution
|
||||
|
||||
syn cluster typescriptExpression add=graphqlTaggedTemplate
|
||||
syn cluster graphqlTaggedTemplate add=graphqlTemplateString
|
||||
|
||||
endif
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
|
||||
if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! after/syntax/typescript/graphql.vim
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
|
||||
if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! after/syntax/javascript/graphql.vim
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zinit') == -1
|
||||
if !polyglot#util#IsEnabled('zinit', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
|
||||
" Copyright (c) 2019 Sebastian Gniazdowski
|
||||
"
|
||||
@@ -122,5 +124,3 @@ highlight def link ZinitSnippetUrl2 Macro
|
||||
highlight def link ZinitSnippetUrl3 Macro
|
||||
highlight def link ZinitSnippetUrl4 Macro
|
||||
highlight def link ZinitTrailingWhiteSpace Error
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/LaTeXtoUnicode.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('julia', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Support for LaTex-to-Unicode conversion as in the Julia REPL "
|
||||
@@ -659,5 +654,3 @@ function! LaTeXtoUnicode#Toggle()
|
||||
endif
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/RstFold.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('rst', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1
|
||||
|
||||
" Author: Antony Lee <anntzer.lee@gmail.com>
|
||||
" Description: Helper functions for reStructuredText syntax folding
|
||||
@@ -69,5 +64,3 @@ function RstFold#GetRstFoldText()
|
||||
let text = thisline =~ '^\([=`:.''"~^_*+#-]\)\1\+$' ? getline(v:foldstart + 1) : thisline
|
||||
return indent . text
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/ada.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('ada', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ada') == -1
|
||||
|
||||
"------------------------------------------------------------------------------
|
||||
" Description: Perform Ada specific completion & tagging.
|
||||
@@ -644,5 +639,3 @@ finish " 1}}}
|
||||
"------------------------------------------------------------------------------
|
||||
" vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
|
||||
" vim: foldmethod=marker
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/cargo.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('rust', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||
|
||||
function! cargo#Load()
|
||||
" Utility call to get this script loaded, for debugging
|
||||
@@ -154,5 +149,3 @@ function! cargo#runtarget(args)
|
||||
endfunction
|
||||
|
||||
" vim: set et sw=4 sts=4 ts=8:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/cargo/quickfix.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('rust', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||
|
||||
function! cargo#quickfix#CmdPre() abort
|
||||
if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo' &&
|
||||
@@ -34,5 +29,3 @@ function! cargo#quickfix#CmdPost() abort
|
||||
endfunction
|
||||
|
||||
" vim: set et sw=4 sts=4 ts=8:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/clojurecomplete.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('clojure', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
|
||||
|
||||
" Vim completion script
|
||||
" Language: Clojure
|
||||
@@ -29,5 +24,3 @@ function! clojurecomplete#Complete(findstart, base)
|
||||
endfunction
|
||||
|
||||
" vim:sts=8:sw=8:ts=8:noet
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/coffee.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
|
||||
|
||||
" Language: CoffeeScript
|
||||
" Maintainer: Mick Koch <mick@kochm.co>
|
||||
@@ -61,5 +56,3 @@ function! coffee#CoffeeSetUpErrorFormat()
|
||||
\%f:%l:%c:\ error:\ %m,
|
||||
\%-G%.%#
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/crystal/indent.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||
|
||||
" Variables {{{1
|
||||
" =========
|
||||
@@ -1048,4 +1043,3 @@ endfunction
|
||||
" }}}1
|
||||
|
||||
" vim:sw=2 sts=2 ts=8 fdm=marker et:
|
||||
endif
|
||||
|
||||
@@ -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/crystal_lang.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||
|
||||
let s:V = vital#crystal#new()
|
||||
let s:P = s:V.import('Process')
|
||||
@@ -370,5 +365,3 @@ function! crystal_lang#expand(file, pos, ...) abort
|
||||
endfunction
|
||||
|
||||
" vim: sw=2 sts=2 et:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/csv.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('csv', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csv') == -1
|
||||
|
||||
" Filetype plugin for editing CSV files. "{{{1
|
||||
" Author: Christian Brabandt <cb@256bit.org>
|
||||
@@ -3203,5 +3198,3 @@ endfun
|
||||
|
||||
" Vim Modeline " {{{2
|
||||
" vim: set foldmethod=marker et sw=0 sts=-1 ts=4:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/dart.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('dart', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1
|
||||
|
||||
|
||||
function! s:error(text) abort
|
||||
@@ -190,5 +185,3 @@ function! dart#setModifiable() abort
|
||||
setlocal nomodifiable
|
||||
endif
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/db/adapter/ecto.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
|
||||
|
||||
let s:path = expand('<sfile>:h')
|
||||
let s:cmd = join(['mix', 'run', '--no-start', '--no-compile', shellescape(s:path.'/get_repos.exs')])
|
||||
@@ -27,5 +22,3 @@ endfunction
|
||||
function! db#adapter#ecto#complete_opaque(url) abort
|
||||
return map(s:repo_list(), 'v:val[0]')
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/ecrystal.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||
|
||||
let s:ecrystal_extensions = {
|
||||
\ 'cr': 'crystal',
|
||||
@@ -39,5 +34,3 @@ function! ecrystal#SetSubtype() abort
|
||||
endfunction
|
||||
|
||||
" vim: sw=2 sts=2 et:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/elixir/indent.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
|
||||
|
||||
if !exists("g:elixir_indent_max_lookbehind")
|
||||
let g:elixir_indent_max_lookbehind = 30
|
||||
@@ -378,5 +373,3 @@ function! elixir#indent#handle_inside_generic_block(context)
|
||||
return -1
|
||||
endif
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/elixir/util.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
|
||||
|
||||
function! elixir#util#get_filename(word) abort
|
||||
let word = a:word
|
||||
@@ -31,5 +26,3 @@ function! elixir#util#get_filename(word) abort
|
||||
|
||||
return word
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/fish.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('fish', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1
|
||||
|
||||
function! fish#Indent()
|
||||
let l:prevlnum = prevnonblank(v:lnum - 1)
|
||||
@@ -92,5 +87,3 @@ endfunction
|
||||
function! fish#errorformat()
|
||||
return '%Afish: %m,%-G%*\\ ^,%-Z%f (line %l):%s'
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/fsharp.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('fsharp', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fsharp') == -1
|
||||
|
||||
" Vim autoload functions
|
||||
|
||||
@@ -520,5 +515,3 @@ let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: sw=4 et sts=4
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/fzf_gitignore.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('gitignore', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gitignore') == -1
|
||||
|
||||
scriptencoding utf-8
|
||||
|
||||
@@ -44,5 +39,3 @@ function! fzf_gitignore#run() abort
|
||||
endfunction
|
||||
|
||||
" vim: ts=2 et sw=2
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/go/config.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('go', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
|
||||
|
||||
" don't spam the user when Vim is started in Vi compatibility mode
|
||||
let s:cpo_save = &cpo
|
||||
@@ -630,5 +625,3 @@ let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: sw=2 ts=2 et
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/graphql.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
|
||||
|
||||
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
|
||||
"
|
||||
@@ -42,5 +37,3 @@ endfunction
|
||||
function! graphql#javascript_tags() abort
|
||||
return get(g:, 'graphql_javascript_tags', ['gql', 'graphql', 'Relay.QL'])
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/htmlcomplete.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('html5', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
|
||||
|
||||
" Vim completion script
|
||||
" Language: HTML and XHTML
|
||||
@@ -848,5 +843,3 @@ function! htmlcomplete#CheckDoctype() " {{{
|
||||
endfunction
|
||||
" }}}
|
||||
" vim:set foldmethod=marker:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/jsonnet.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('jsonnet', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsonnet') == -1
|
||||
|
||||
|
||||
|
||||
@@ -132,5 +127,3 @@ function! jsonnet#Format()
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/jsx_pretty/comment.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
|
||||
|
||||
function! jsx_pretty#comment#update_commentstring(original)
|
||||
let line = getline(".")
|
||||
@@ -44,5 +39,3 @@ function! s:syn_contains(lnum, cnum, syn_name)
|
||||
let syn_names = map(stack, 'synIDattr(v:val, "name")')
|
||||
return index(syn_names, a:syn_name) >= 0
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/jsx_pretty/indent.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1)
|
||||
|
||||
if exists('*shiftwidth')
|
||||
function! s:sw()
|
||||
@@ -309,5 +304,3 @@ function! jsx_pretty#indent#get(js_indent)
|
||||
|
||||
return a:js_indent()
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/julia.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('julia', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
|
||||
|
||||
function! julia#set_syntax_version(jvers)
|
||||
echo "The julia#set_syntax_version function is deprecated"
|
||||
@@ -172,5 +167,3 @@ function! julia#gotodefinition()
|
||||
return
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
|
||||
@@ -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/julia/doc.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('julia', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
|
||||
|
||||
" path to the julia binary to communicate with
|
||||
if has('win32') || has('win64')
|
||||
@@ -249,5 +244,3 @@ function! s:likely(str) abort
|
||||
let output = systemlist(cmd)
|
||||
return split(matchstr(output[0], '\C^search: \zs.*'))
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/julia_blocks.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('julia', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
|
||||
|
||||
" Facilities for moving around Julia blocks (e.g. if/end, function/end etc.)
|
||||
" (AKA a collection of horrible hacks)
|
||||
@@ -801,5 +796,3 @@ function! s:cursor_moved(...)
|
||||
let b:jlblk_did_select = b:jlblk_doing_select
|
||||
let b:jlblk_doing_select = 0
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/julia_latex_symbols.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('julia', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
|
||||
|
||||
" This file is autogenerated from the script 'generate_latex_symbols_table.jl'
|
||||
" The symbols are based on Julia version 1.5.0-DEV.67
|
||||
@@ -3339,5 +3334,3 @@ function! julia_latex_symbols#get_dict()
|
||||
\ '\:baggage_claim:': '🛄',
|
||||
\ '\:left_luggage:': '🛅'}
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/ledger.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('ledger', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ledger') == -1
|
||||
|
||||
scriptencoding utf-8
|
||||
" vim:ts=2:sw=2:sts=2:foldmethod=marker
|
||||
@@ -747,5 +742,3 @@ function! ledger#show_balance(file, ...) abort
|
||||
endif
|
||||
endf
|
||||
" }}}
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/nim.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('nim', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1
|
||||
|
||||
let g:nim_log = []
|
||||
let s:plugin_path = escape(expand('<sfile>:p:h'), '\')
|
||||
@@ -245,5 +240,3 @@ if exists('g:SyntasticRegistry')
|
||||
\ 'filetype': 'nim',
|
||||
\ 'name': 'nim'})
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
64
autoload/polyglot/util.vim
Normal file
64
autoload/polyglot/util.vim
Normal file
@@ -0,0 +1,64 @@
|
||||
" Restore 'cpoptions'
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
let s:disabled_packages = {}
|
||||
let s:new_polyglot_disabled = []
|
||||
|
||||
if exists('g:polyglot_disabled')
|
||||
for pkg in g:polyglot_disabled
|
||||
let base = split(pkg, '\.')
|
||||
if len(base) > 0
|
||||
let s:disabled_packages[pkg] = 1
|
||||
call add(s:new_polyglot_disabled, base[0])
|
||||
endif
|
||||
endfor
|
||||
else
|
||||
let g:polyglot_disabled_not_set = 1
|
||||
endif
|
||||
|
||||
|
||||
let s:base = expand('<sfile>:p:h:h:h')
|
||||
|
||||
func polyglot#util#Filter(idx, val)
|
||||
let val = fnamemodify(a:val . '/', ':p:h')
|
||||
return resolve(val) !=? s:base && stridx(val, $VIMRUNTIME) == -1 && val !~? '/after$'
|
||||
endfunc
|
||||
|
||||
let s:rtp = join(filter(split(&rtp, ','), function('polyglot#util#Filter')), ',')
|
||||
|
||||
func polyglot#util#IsEnabled(type, file)
|
||||
if a:file != "ftdetect"
|
||||
let file = a:file[len(s:base) + 1:]
|
||||
let files = globpath(s:rtp, file, 1, 1)
|
||||
if !empty(files)
|
||||
exec 'source' files[0]
|
||||
return 0
|
||||
endif
|
||||
endif
|
||||
if a:type == "jsx"
|
||||
return !has_key(s:disabled_packages, "jsx") && !has_key(s:disabled_packages, "javascript")
|
||||
endif
|
||||
return !has_key(s:disabled_packages, a:type)
|
||||
endfunc
|
||||
|
||||
func! polyglot#util#Verify()
|
||||
if exists("g:polyglot_disabled_not_set")
|
||||
if exists("g:polyglot_disabled")
|
||||
echohl WarningMsg
|
||||
echo "vim-polyglot: g:polyglot_disabled should be defined before loading vim-polyglot"
|
||||
echohl None
|
||||
endif
|
||||
|
||||
unlet g:polyglot_disabled_not_set
|
||||
endif
|
||||
endfunc
|
||||
|
||||
" Save polyglot_disabled without postfixes
|
||||
if exists('g:polyglot_disabled')
|
||||
let g:polyglot_disabled = s:new_polyglot_disabled
|
||||
endif
|
||||
|
||||
" Restore 'cpoptions'
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
@@ -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/pony.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('pony', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1
|
||||
|
||||
" Vim plugin file
|
||||
" Language: Pony
|
||||
@@ -539,5 +534,3 @@ endfunction
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/puppet/align.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
|
||||
|
||||
function! puppet#align#IndentLevel(lnum)
|
||||
return indent(a:lnum) / &shiftwidth
|
||||
@@ -75,5 +70,3 @@ function! puppet#align#AlignHashrockets(...) abort
|
||||
endif
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/puppet/ctags.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
|
||||
|
||||
|
||||
if !exists('s:ctags_type')
|
||||
@@ -43,5 +38,3 @@ function! puppet#ctags#Type()
|
||||
return s:ctags_type
|
||||
endfunction
|
||||
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/puppet/format.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
|
||||
|
||||
"
|
||||
" Simple format using puppet's l:indents and align hashrockets function
|
||||
@@ -77,5 +72,3 @@ function! puppet#format#Fallback(start_lnum, end_lnum) abort
|
||||
|
||||
endfunction
|
||||
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/python/utils.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('python-compiler', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1
|
||||
|
||||
" Sometimes Python issues debugging messages
|
||||
" which don't belong to a call stack context
|
||||
@@ -24,5 +19,3 @@ function! python#utils#fix_qflist() " {{{
|
||||
call setqflist(l:traceback)
|
||||
endif
|
||||
endfunction " }}}
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/requirements.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('requirements', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'requirements') == -1
|
||||
|
||||
" the Requirements File Format syntax support for Vim
|
||||
" Version: 1.5.3
|
||||
@@ -39,5 +34,3 @@ set cpo&vim
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
" vim: et sw=4 ts=4 sts=4:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/rubycomplete.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
|
||||
|
||||
" Vim completion script
|
||||
" Language: Ruby
|
||||
@@ -878,5 +873,3 @@ call s:DefRuby()
|
||||
"}}} ruby-side code
|
||||
|
||||
" vim:tw=78:sw=4:ts=8:et:fdm=marker:ft=vim:norl:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/rust.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('rust', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||
|
||||
" Description: Helper functions for Rust commands/mappings
|
||||
" Last Modified: May 27, 2014
|
||||
@@ -577,5 +572,3 @@ endfunction
|
||||
" }}}1
|
||||
|
||||
" vim: set et sw=4 sts=4 ts=8:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/rust/debugging.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('rust', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||
|
||||
" For debugging, inspired by https://github.com/w0rp/rust/blob/master/autoload/rust/debugging.vim
|
||||
|
||||
@@ -110,5 +105,3 @@ function! rust#debugging#InfoToFile(filename) abort
|
||||
endfunction
|
||||
|
||||
" vim: set et sw=4 sts=4 ts=8:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/rust/delimitmate.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('rust', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||
|
||||
let s:delimitMate_extra_excluded_regions = ',rustLifetimeCandidate,rustGenericLifetimeCandidate'
|
||||
|
||||
@@ -51,5 +46,3 @@ endfunction
|
||||
|
||||
" vim: set et sw=4 sts=4 ts=8:
|
||||
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/rust/tags.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('rust', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||
|
||||
" Tagbar support code, for the sake of not automatically overriding its
|
||||
" configuration in case Universal Ctags is detected.
|
||||
@@ -25,5 +20,3 @@ function! rust#tags#IsUCtags() abort
|
||||
endfunction
|
||||
|
||||
" vim: set et sw=4 sts=4 ts=8:
|
||||
|
||||
endif
|
||||
|
||||
@@ -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/rustfmt.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
if !polyglot#util#IsEnabled('rust', expand('<sfile>:p'))
|
||||
finish
|
||||
endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||
|
||||
" Author: Stephen Sugden <stephen@stephensugden.com>
|
||||
"
|
||||
@@ -267,5 +262,3 @@ endfunction
|
||||
|
||||
|
||||
" vim: set et sw=4 sts=4 ts=8:
|
||||
|
||||
endif
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user