mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 03:53:52 -05:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f3df59be7 | ||
|
|
26790941f6 | ||
|
|
fbc2af9e82 | ||
|
|
d4f252565a | ||
|
|
48e07bc501 | ||
|
|
c8897c9c18 |
@@ -10,7 +10,7 @@ A collection of language packs for Vim.
|
|||||||
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.
|
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.
|
||||||
|
|
||||||
- It **won't affect your startup time**, as scripts are loaded only on demand\*.
|
- It **won't affect your startup time**, as scripts are loaded only on demand\*.
|
||||||
- It **installs and updates 120+ times faster** than the <!--Package Count-->147<!--/Package Count--> packages it consists of.
|
- It **installs and updates 120+ times faster** than the <!--Package Count-->146<!--/Package Count--> packages it consists of.
|
||||||
- Solid syntax and indentation support (other features skipped). Only the best language packs.
|
- Solid syntax and indentation support (other features skipped). Only the best language packs.
|
||||||
- All unnecessary files are ignored (like enormous documentation from php support).
|
- All unnecessary files are ignored (like enormous documentation from php support).
|
||||||
- No support for esoteric languages, only most popular ones (modern too, like `slim`).
|
- No support for esoteric languages, only most popular ones (modern too, like `slim`).
|
||||||
@@ -108,7 +108,7 @@ If you need full functionality of any plugin, please use it directly with your p
|
|||||||
- [json5](https://github.com/GutenYe/json5.vim) (syntax)
|
- [json5](https://github.com/GutenYe/json5.vim) (syntax)
|
||||||
- [json](https://github.com/elzr/vim-json) (syntax, indent, ftplugin)
|
- [json](https://github.com/elzr/vim-json) (syntax, indent, ftplugin)
|
||||||
- [jst](https://github.com/briancollins/vim-jst) (syntax, indent)
|
- [jst](https://github.com/briancollins/vim-jst) (syntax, indent)
|
||||||
- [jsx](https://github.com/MaxMEllon/vim-jsx-pretty) (autoload, syntax, indent, ftplugin)
|
- [jsx](https://github.com/MaxMEllon/vim-jsx-pretty) (autoload, after)
|
||||||
- [julia](https://github.com/JuliaEditorSupport/julia-vim) (syntax, indent, autoload, ftplugin)
|
- [julia](https://github.com/JuliaEditorSupport/julia-vim) (syntax, indent, autoload, ftplugin)
|
||||||
- [kotlin](https://github.com/udalov/kotlin-vim) (syntax, indent, ftplugin)
|
- [kotlin](https://github.com/udalov/kotlin-vim) (syntax, indent, ftplugin)
|
||||||
- [latex](https://github.com/LaTeX-Box-Team/LaTeX-Box) (syntax, indent, ftplugin)
|
- [latex](https://github.com/LaTeX-Box-Team/LaTeX-Box) (syntax, indent, ftplugin)
|
||||||
@@ -162,7 +162,6 @@ If you need full functionality of any plugin, please use it directly with your p
|
|||||||
- [slime](https://github.com/slime-lang/vim-slime-syntax) (syntax, indent)
|
- [slime](https://github.com/slime-lang/vim-slime-syntax) (syntax, indent)
|
||||||
- [smt2](https://github.com/bohlender/vim-smt2) (syntax, autoload, ftplugin)
|
- [smt2](https://github.com/bohlender/vim-smt2) (syntax, autoload, ftplugin)
|
||||||
- [solidity](https://github.com/tomlion/vim-solidity) (syntax, indent, ftplugin)
|
- [solidity](https://github.com/tomlion/vim-solidity) (syntax, indent, ftplugin)
|
||||||
- [styled-components](https://github.com/styled-components/vim-styled-components#main) (after)
|
|
||||||
- [stylus](https://github.com/wavded/vim-stylus) (syntax, indent, ftplugin)
|
- [stylus](https://github.com/wavded/vim-stylus) (syntax, indent, ftplugin)
|
||||||
- [svelte](https://github.com/evanleck/vim-svelte) (syntax, indent)
|
- [svelte](https://github.com/evanleck/vim-svelte) (syntax, indent)
|
||||||
- [svg-indent](https://github.com/jasonshell/vim-svg-indent) (indent)
|
- [svg-indent](https://github.com/jasonshell/vim-svg-indent) (indent)
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim completion script
|
|
||||||
" Language: styled-components (js/ts)
|
|
||||||
" Maintainer: Karl Fleischmann <fleischmann.karl@gmail.com>
|
|
||||||
" URL: https://github.com/styled-components/vim-styled-components
|
|
||||||
|
|
||||||
fun! styledcomplete#CompleteSC(findstart, base)
|
|
||||||
if IsStyledDefinition(line('.'))
|
|
||||||
return csscomplete#CompleteCSS(a:findstart, a:base)
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Only trigger original omnifunc if it was set in the first place
|
|
||||||
if exists('b:prevofu')
|
|
||||||
" create a funcref to call with the previous omnicomplete function
|
|
||||||
let s:funcref = function(b:prevofu)
|
|
||||||
return s:funcref(a:findstart, a:base)
|
|
||||||
endif
|
|
||||||
endfun
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haskell') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
setlocal comments=s1fl:{-,mb:-,ex:-},:--
|
setlocal comments=s1fl:{-,mb:-,ex:-},:--
|
||||||
setlocal iskeyword+=-,.,*
|
setlocal iskeyword+=-,.,*
|
||||||
setlocal commentstring=--\ %s
|
setlocal commentstring=--\ %s
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cjsx') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
if exists("loaded_matchit")
|
if exists("loaded_matchit")
|
||||||
let b:match_ignorecase = 0
|
let b:match_ignorecase = 0
|
||||||
let b:match_words = '(:),\[:\],{:},<:>,' .
|
let b:match_words = '(:),\[:\],{:},<:>,' .
|
||||||
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
|
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haskell') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:--
|
setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:--
|
||||||
setlocal iskeyword+='
|
setlocal iskeyword+='
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'idris') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
setlocal iskeyword+='
|
setlocal iskeyword+='
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: JavaScript
|
" Language: JavaScript
|
||||||
@@ -14,9 +12,9 @@ if exists('b:undo_ftplugin')
|
|||||||
else
|
else
|
||||||
let b:undo_ftplugin = 'setlocal iskeyword< suffixesadd<'
|
let b:undo_ftplugin = 'setlocal iskeyword< suffixesadd<'
|
||||||
endif
|
endif
|
||||||
if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
|
||||||
finish
|
|
||||||
endif
|
endif
|
||||||
|
if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Vim ftplugin file
|
" Vim ftplugin file
|
||||||
@@ -49,44 +47,5 @@ augroup jsx_comment
|
|||||||
augroup end
|
augroup end
|
||||||
|
|
||||||
setlocal suffixesadd+=.jsx
|
setlocal suffixesadd+=.jsx
|
||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim filetype plugin file
|
|
||||||
" Language: styled-components (js/ts)
|
|
||||||
" Maintainer: Karl Fleischmann <fleischmann.karl@gmail.com>
|
|
||||||
" URL: https://github.com/styled-components/vim-styled-components
|
|
||||||
|
|
||||||
fu! s:GetSyntaxNames(lnum, cnum)
|
|
||||||
return map(synstack(a:lnum, a:cnum), 'synIDattr(v:val, "name")')
|
|
||||||
endfu
|
|
||||||
|
|
||||||
" re-implement SynSOL of vim-jsx
|
|
||||||
fu! s:SynSOL(lnum)
|
|
||||||
return s:GetSyntaxNames(a:lnum, 1)
|
|
||||||
endfu
|
|
||||||
|
|
||||||
"" Return whether the current line is a jsTemplateString
|
|
||||||
fu! IsStyledDefinition(lnum)
|
|
||||||
" iterate through all syntax items in the given line
|
|
||||||
for item in s:SynSOL(a:lnum)
|
|
||||||
" if syntax-item is a jsTemplateString return 1 - true
|
|
||||||
" `==#` is a match case comparison of the item
|
|
||||||
if item ==# 'styledDefinition'
|
|
||||||
return 1
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
|
|
||||||
" fallback to 0 - false
|
|
||||||
return 0
|
|
||||||
endfu
|
|
||||||
|
|
||||||
if exists('&ofu')
|
|
||||||
if &ofu
|
|
||||||
" Do not keep track of previous omnifunc if it was not set in the first
|
|
||||||
" place
|
|
||||||
let b:prevofu=&ofu
|
|
||||||
endif
|
|
||||||
setl omnifunc=styledcomplete#CompleteSC
|
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'llvm') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Copyright (c) 2018 rhysd
|
" Copyright (c) 2018 rhysd
|
||||||
"
|
"
|
||||||
@@ -475,3 +473,5 @@ endfunction
|
|||||||
if !exists(':LLI')
|
if !exists(':LLI')
|
||||||
command! -buffer -nargs=? -bar -complete=file LLI call <SID>run_lli(<f-args>)
|
command! -buffer -nargs=? -bar -complete=file LLI call <SID>run_lli(<f-args>)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
if !exists('g:puppet_align_hashes')
|
if !exists('g:puppet_align_hashes')
|
||||||
let g:puppet_align_hashes = 1
|
let g:puppet_align_hashes = 1
|
||||||
@@ -9,3 +7,5 @@ endif
|
|||||||
if g:puppet_align_hashes
|
if g:puppet_align_hashes
|
||||||
inoremap <buffer> <silent> => =><Esc>:call puppet#align#AlignHashrockets()<CR>$a
|
inoremap <buffer> <silent> => =><Esc>:call puppet#align#AlignHashrockets()<CR>$a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" modified from html.vim
|
" modified from html.vim
|
||||||
" For matchit plugin
|
" For matchit plugin
|
||||||
@@ -25,7 +23,5 @@ augroup jsx_comment
|
|||||||
augroup end
|
augroup end
|
||||||
|
|
||||||
setlocal suffixesadd+=.tsx
|
setlocal suffixesadd+=.tsx
|
||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'yaml') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim indent file
|
" Vim indent file
|
||||||
" Language: Yaml
|
" Language: Yaml
|
||||||
@@ -9,3 +7,5 @@ endif
|
|||||||
" URL: https://github.com/hjpbarcelos
|
" URL: https://github.com/hjpbarcelos
|
||||||
setlocal autoindent sw=2 ts=2 expandtab
|
setlocal autoindent sw=2 ts=2 expandtab
|
||||||
" vim:set sw=2:
|
" vim:set sw=2:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Vim indent file
|
" Vim indent file
|
||||||
@@ -31,176 +29,5 @@ endfunction
|
|||||||
|
|
||||||
let &cpo = s:keepcpo
|
let &cpo = s:keepcpo
|
||||||
unlet s:keepcpo
|
unlet s:keepcpo
|
||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1
|
|
||||||
finish
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Vim syntax file
|
|
||||||
" Language: styled-components (js/ts)
|
|
||||||
" Maintainer: Karl Fleischmann <fleischmann.karl@gmail.com>
|
|
||||||
" URL: https://github.com/styled-components/vim-styled-components
|
|
||||||
|
|
||||||
" initialize variable to check, if the indentation expression is run
|
|
||||||
" multiple times in a row, which indicates an infinite recursion
|
|
||||||
let s:is_recursion = 0
|
|
||||||
|
|
||||||
" store current indentexpr for later
|
|
||||||
let b:js_ts_indent=&indentexpr
|
|
||||||
|
|
||||||
" set indentexpr for this filetype (styled-components)
|
|
||||||
setlocal indentexpr=GetStyledIndent()
|
|
||||||
|
|
||||||
" add the following keys to trigger reindenting, when in insert mode
|
|
||||||
" - *; - Indent and insert on press of ';' key.
|
|
||||||
" - *<:> - Indent and insert on press of ':' key.
|
|
||||||
set indentkeys+=*;,*<:>,*<Return>
|
|
||||||
|
|
||||||
fu! s:GetSyntaxNames(lnum, cnum)
|
|
||||||
return map(synstack(a:lnum, a:cnum), 'synIDattr(v:val, "name")')
|
|
||||||
endfu
|
|
||||||
|
|
||||||
" re-implement SynSOL of vim-jsx
|
|
||||||
" TODO: add dependency to the readme and remove duplicate implementation
|
|
||||||
fu! s:SynSOL(lnum)
|
|
||||||
return s:GetSyntaxNames(a:lnum, 1)
|
|
||||||
endfu
|
|
||||||
|
|
||||||
" re-implement SynEOL of vim-jsx
|
|
||||||
" TODO: add dependency to the readme and remove duplicate implementation
|
|
||||||
fu! s:SynEOL(lnum, offset)
|
|
||||||
let l:lnum = prevnonblank(a:lnum)
|
|
||||||
let l:col = strlen(getline(l:lnum))
|
|
||||||
|
|
||||||
return s:GetSyntaxNames(l:lnum, l:col + a:offset)
|
|
||||||
endfu
|
|
||||||
|
|
||||||
|
|
||||||
"" Return whether the current line is a jsTemplateString
|
|
||||||
fu! s:IsStyledDefinition(lnum)
|
|
||||||
" iterate through all syntax items in the given line
|
|
||||||
for item in s:SynSOL(a:lnum)
|
|
||||||
" if syntax-item is a jsTemplateString return 1 - true
|
|
||||||
" `==#` is a match case comparison of the item
|
|
||||||
if item ==# 'styledDefinition'
|
|
||||||
return 1
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
|
|
||||||
" fallback to 0 - false
|
|
||||||
return 0
|
|
||||||
endfu
|
|
||||||
|
|
||||||
"" Count occurences of `str` at the beginning of the given `lnum` line
|
|
||||||
fu! s:CountOccurencesInSOL(lnum, str)
|
|
||||||
let l:occurence = 0
|
|
||||||
|
|
||||||
" iterate through all items in the given line
|
|
||||||
for item in s:SynSOL(a:lnum)
|
|
||||||
" if the syntax-item equals the given str increment the counter
|
|
||||||
" `==?` is a case isensitive equal operation
|
|
||||||
if item ==? a:str
|
|
||||||
let l:occurence += 1
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
|
|
||||||
" return the accumulated count of occurences
|
|
||||||
return l:occurence
|
|
||||||
endfu
|
|
||||||
|
|
||||||
"" Count occurences of `str` at the end of the given `lnum` line
|
|
||||||
fu! s:CountOccurencesInEOL(lnum, str, offset)
|
|
||||||
let l:occurence = 0
|
|
||||||
|
|
||||||
" iterate through all items in the given line
|
|
||||||
for item in s:SynEOL(a:lnum, a:offset)
|
|
||||||
" if the syntax-item equals the given str increment the counter
|
|
||||||
" `==?` is a case insensitive equal operation
|
|
||||||
if item == a:str
|
|
||||||
let l:occurence += 1
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
|
|
||||||
" return the accumulated count of occurences
|
|
||||||
return l:occurence
|
|
||||||
endfu
|
|
||||||
|
|
||||||
"" Get the indentation of the current line
|
|
||||||
fu! GetStyledIndent()
|
|
||||||
if s:IsStyledDefinition(v:lnum)
|
|
||||||
let l:baseIndent = 0
|
|
||||||
|
|
||||||
" find last non-styled line
|
|
||||||
let l:cnum = v:lnum
|
|
||||||
while s:IsStyledDefinition(l:cnum)
|
|
||||||
let l:cnum -= 1
|
|
||||||
endwhile
|
|
||||||
|
|
||||||
" get indentation of the last non-styled line as base indentation
|
|
||||||
let l:baseIndent = indent(l:cnum)
|
|
||||||
|
|
||||||
" incrementally build indentation based on current indentation
|
|
||||||
" - one shiftwidth for the styled definition region
|
|
||||||
" - one shiftwidth per open nested definition region
|
|
||||||
let l:styledIndent = &sw
|
|
||||||
let l:styledIndent += min([
|
|
||||||
\ s:CountOccurencesInSOL(v:lnum, 'styledNestedRegion'),
|
|
||||||
\ s:CountOccurencesInEOL(v:lnum, 'styledNestedRegion', 0)
|
|
||||||
\ ]) * &sw
|
|
||||||
|
|
||||||
" decrease indentation by one shiftwidth, if the styled definition
|
|
||||||
" region ends on the current line
|
|
||||||
" - either directly via styled definition region, or
|
|
||||||
" - if the very last
|
|
||||||
if s:CountOccurencesInEOL(v:lnum, 'styledDefinition', 1) == 0
|
|
||||||
let l:styledIndent -= &sw
|
|
||||||
endif
|
|
||||||
|
|
||||||
" return the base indentation
|
|
||||||
" (for nested styles inside classes/objects/etc.) plus the actual
|
|
||||||
" indentation inside the styled definition region
|
|
||||||
return l:baseIndent + l:styledIndent
|
|
||||||
elseif len(b:js_ts_indent)
|
|
||||||
let l:result = 0
|
|
||||||
let l:offset = 0
|
|
||||||
|
|
||||||
" increase indentation by one shiftwidth, if the last line ended on a
|
|
||||||
" styledXmlRegion and this line does not continue with it
|
|
||||||
" this is a fix for an incorrectly indented xml prop after a
|
|
||||||
" glamor-styled styledXmlRegion
|
|
||||||
if s:CountOccurencesInEOL(v:lnum-1, 'styledXmlRegion', 0) == 1 &&
|
|
||||||
\ s:CountOccurencesInSOL(v:lnum, 'styledXmlRegion') == 0
|
|
||||||
let l:offset = &sw
|
|
||||||
endif
|
|
||||||
|
|
||||||
" make sure `GetStyledIndent` and `GetJsxIndent` don't infinitely
|
|
||||||
" recurse by incrementing a counter variable, before evaluating the
|
|
||||||
" stored indent expression
|
|
||||||
if s:is_recursion == 0
|
|
||||||
let s:is_recursion = 1
|
|
||||||
let l:result = eval(b:js_ts_indent)
|
|
||||||
endif
|
|
||||||
|
|
||||||
" `is_recursion` being 0 at this point indicates, that
|
|
||||||
" `eval(b:js_ts_indent)` did itself evaluate it's stored indentexpr
|
|
||||||
" and thus it can be assumed, that the current line should be
|
|
||||||
" indented as JS
|
|
||||||
if s:is_recursion == 0
|
|
||||||
" use one of `GetJavascriptIndent` or `GetJsIndent` if existing
|
|
||||||
" fallback to cindent, if not
|
|
||||||
if exists('*GetJavascriptIndent')
|
|
||||||
let l:result = GetJavascriptIndent()
|
|
||||||
elseif exists('*GetJsIndent')
|
|
||||||
let l:result = GetJsIndent()
|
|
||||||
else
|
|
||||||
let l:result = cindent(v:lnum)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
" reset `is_recursion` counter and return the indentation value
|
|
||||||
let s:is_recursion = 0
|
|
||||||
return l:result + l:offset
|
|
||||||
endif
|
|
||||||
|
|
||||||
" if all else fails indent according to C-syntax
|
|
||||||
return cindent(v:lnum)
|
|
||||||
endfu
|
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
runtime! indent/javascript.vim
|
|
||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'objc') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim indent file
|
" Vim indent file
|
||||||
" Language: Objective-C
|
" Language: Objective-C
|
||||||
@@ -95,3 +93,5 @@ endfunction
|
|||||||
" Restore 'cpo' options
|
" Restore 'cpo' options
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Vim indent file
|
" Vim indent file
|
||||||
@@ -32,8 +30,5 @@ endfunction
|
|||||||
|
|
||||||
let &cpo = s:keepcpo
|
let &cpo = s:keepcpo
|
||||||
unlet s:keepcpo
|
unlet s:keepcpo
|
||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
runtime! indent/javascript.vim
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'c++11') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: C Additions
|
" Language: C Additions
|
||||||
@@ -306,3 +304,5 @@ hi def link cBoolean Boolean
|
|||||||
"hi def link cDelimiter Delimiter
|
"hi def link cDelimiter Delimiter
|
||||||
" foldmethod=syntax fix, courtesy of Ivan Freitas
|
" foldmethod=syntax fix, courtesy of Ivan Freitas
|
||||||
"hi def link cBraces Delimiter
|
"hi def link cBraces Delimiter
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cjsx') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
if exists('b:current_syntax')
|
if exists('b:current_syntax')
|
||||||
let s:current_syntax=b:current_syntax
|
let s:current_syntax=b:current_syntax
|
||||||
@@ -29,3 +27,5 @@ hi def link cjsxTagName Function
|
|||||||
hi def link cjsxEntity Statement
|
hi def link cjsxEntity Statement
|
||||||
hi def link cjsxEntityPunct Type
|
hi def link cjsxEntityPunct Type
|
||||||
hi def link cjsxAttribProperty Type
|
hi def link cjsxAttribProperty Type
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'c++11') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: C++ Additions
|
" Language: C++ Additions
|
||||||
@@ -2103,3 +2101,5 @@ if version >= 508 || !exists("did_cpp_syntax_inits")
|
|||||||
HiLink cppRawDelimiter Delimiter
|
HiLink cppRawDelimiter Delimiter
|
||||||
delcommand HiLink
|
delcommand HiLink
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dhall') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" store and remove current syntax value
|
" store and remove current syntax value
|
||||||
let old_syntax = b:current_syntax
|
let old_syntax = b:current_syntax
|
||||||
@@ -15,3 +13,5 @@ hi def link quasiQuote Underlined
|
|||||||
|
|
||||||
" restore current syntax value
|
" restore current syntax value
|
||||||
let b:current_syntax = old_syntax
|
let b:current_syntax = old_syntax
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'scala') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Extends standard help syntax with highlighting of Scala code.
|
" Extends standard help syntax with highlighting of Scala code.
|
||||||
"
|
"
|
||||||
@@ -16,3 +14,5 @@ if has('conceal')
|
|||||||
else
|
else
|
||||||
syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode
|
syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: HTML (version 5.1)
|
" Language: HTML (version 5.1)
|
||||||
@@ -14,3 +12,5 @@ endif
|
|||||||
" https://github.com/w3c/html/issues/694
|
" https://github.com/w3c/html/issues/694
|
||||||
syntax region htmlComment start=+<!--+ end=+-->+ contains=@Spell
|
syntax region htmlComment start=+<!--+ end=+-->+ contains=@Spell
|
||||||
syntax region htmlComment start=+<!DOCTYPE+ keepend end=+>+
|
syntax region htmlComment start=+<!DOCTYPE+ keepend end=+>+
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'idris') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" This script allows for unicode concealing of certain characters
|
" This script allows for unicode concealing of certain characters
|
||||||
" For instance -> goes to →
|
" For instance -> goes to →
|
||||||
@@ -80,3 +78,5 @@ hi link idrNiceOperator Operator
|
|||||||
hi! link Conceal Operator
|
hi! link Conceal Operator
|
||||||
setlocal conceallevel=2
|
setlocal conceallevel=2
|
||||||
|
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
@@ -60,202 +58,5 @@ let b:current_syntax = 'javascript.jsx'
|
|||||||
|
|
||||||
let &cpo = s:jsx_cpo
|
let &cpo = s:jsx_cpo
|
||||||
unlet s:jsx_cpo
|
unlet s:jsx_cpo
|
||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim syntax file
|
|
||||||
" Language: styled-components (js/ts)
|
|
||||||
" Maintainer: Karl Fleischmann <fleischmann.karl@gmail.com>
|
|
||||||
" URL: https://github.com/styled-components/vim-styled-components
|
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
|
||||||
let s:current_syntax=b:current_syntax
|
|
||||||
unlet b:current_syntax
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
" fix for "-" before cssPositioningProp
|
|
||||||
" - needs to be above CSS include to not match cssVendor definitions
|
|
||||||
syn region cssCustomPositioningPrefix contained
|
|
||||||
\ start='-' end='\%(\s\{-}:\)\@='
|
|
||||||
\ contains=cssPositioningProp
|
|
||||||
|
|
||||||
" introduce CSS cluster from built-in (or single third party syntax file)
|
|
||||||
syn include @CSS syntax/css.vim
|
|
||||||
|
|
||||||
" try to include CSS3 definitions from multiple files
|
|
||||||
" this is only possible on vim version above 7
|
|
||||||
if v:version >= 700
|
|
||||||
try
|
|
||||||
syn include @CSS3 syntax/css/*.vim
|
|
||||||
catch
|
|
||||||
endtry
|
|
||||||
endif
|
|
||||||
|
|
||||||
" TODO: include react-native keywords
|
|
||||||
|
|
||||||
" define custom cssAttrRegion
|
|
||||||
" - add ",", "`" and "{" to the end characters
|
|
||||||
" - add "cssPseudoClassId" to it's containing elements
|
|
||||||
" this will incorrectly highlight pseudo elements incorrectly used as
|
|
||||||
" attributes but correctly highlight actual attributes
|
|
||||||
syn region cssCustomAttrRegion contained
|
|
||||||
\ start=":" end="\ze\%(;\|)\|{\|}\|`\)"
|
|
||||||
\ contains=css.*Attr,cssColor,cssImportant,cssValue.*,cssFunction,
|
|
||||||
\ cssString.*,cssURL,cssComment,cssUnicodeEscape,cssVendor,
|
|
||||||
\ cssError,cssAttrComma,cssNoise,cssPseudoClassId,
|
|
||||||
\ jsTemplateExpression,
|
|
||||||
\ typescriptInterpolation,typescriptTemplateSubstitution
|
|
||||||
syn region cssCustomAttrRegion contained
|
|
||||||
\ start="transition\s*:" end="\ze\%(;\|)\|{\|}\|`\)"
|
|
||||||
\ contains=css.*Prop,css.*Attr,cssColor,cssImportant,cssValue.*,
|
|
||||||
\ cssFunction,cssString.*,cssURL,cssComment,cssUnicodeEscape,
|
|
||||||
\ cssVendor,cssError,cssAttrComma,cssNoise,cssPseudoClassId,
|
|
||||||
\ jsTemplateExpression,
|
|
||||||
\ typescriptInterpolation,typescriptTemplateSubstitution
|
|
||||||
|
|
||||||
" define custom css elements to not utilize cssDefinition
|
|
||||||
syn region cssCustomMediaBlock contained fold transparent matchgroup=cssBraces
|
|
||||||
\ start="{" end="}"
|
|
||||||
\ contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,
|
|
||||||
\ cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,
|
|
||||||
\ cssUnicodeEscape,cssVendor,cssTagName,cssClassName,
|
|
||||||
\ cssIdentifier,cssPseudoClass,cssSelectorOp,cssSelectorOp2,
|
|
||||||
\ cssAttributeSelector
|
|
||||||
syn region cssCustomPageWrap contained transparent matchgroup=cssBraces
|
|
||||||
\ start="{" end="}"
|
|
||||||
\ contains=cssPageMargin,cssPageProp,cssCustomAttrRegion,css.*Prop,
|
|
||||||
\ cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,
|
|
||||||
\ cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssVendor,
|
|
||||||
\ cssHacks
|
|
||||||
syn match cssCustomPageMargin contained skipwhite skipnl
|
|
||||||
\ "@\%(\%(top\|left\|right\|bottom\)-\%(left\|center\|right\|middle\|bottom\)\)\%(-corner\)\="
|
|
||||||
syn match cssCustomKeyFrameSelector "\%(\d*%\|\<from\>\|\<to\>\)" contained
|
|
||||||
\ skipwhite skipnl
|
|
||||||
|
|
||||||
" define css include customly to overwrite nextgroup
|
|
||||||
syn region cssInclude start="@media\>" end="\ze{" skipwhite skipnl
|
|
||||||
\ contains=cssMediaProp,cssValueLength,cssMediaKeyword,cssValueInteger,
|
|
||||||
\ cssMediaMediaAttr,cssVencor,cssMediaType,cssIncludeKeyword,
|
|
||||||
\ cssMediaComma,cssComment
|
|
||||||
\ nextgroup=cssCustomMediaBlock
|
|
||||||
|
|
||||||
" define all non-contained css definitions
|
|
||||||
syn cluster CSSTop
|
|
||||||
\ contains=cssTagName,cssSelectorOp,cssAttributeSelector,cssClassName,
|
|
||||||
\ cssBraces,cssIdentifier,cssIncludeKeyword,cssPage,cssKeyFrame,
|
|
||||||
\ cssFontDescriptor,cssAttrComma,cssPseudoClass,cssUnicodeEscape
|
|
||||||
|
|
||||||
" custom highlights for styled components
|
|
||||||
" - "&" inside top level
|
|
||||||
" - cssTagName inside of jsStrings inside of styledPrefix regions
|
|
||||||
" TODO: override highlighting of cssTagName with more subtle one
|
|
||||||
syn match styledAmpersand contained "&"
|
|
||||||
syn region styledTagNameString matchgroup=jsString contained
|
|
||||||
\ start=+'+ end=+'+ skip=+\\\%(\'\|$\)+
|
|
||||||
\ contains=cssTagName
|
|
||||||
syn region styledTagNameString matchgroup=jsString contained
|
|
||||||
\ start=+"+ end=+"+ skip=+\\\%(\"\|$\)+
|
|
||||||
\ contains=cssTagName
|
|
||||||
syn region styledTagNameString matchgroup=jsString contained
|
|
||||||
\ start=+`+ end=+`+ skip=+\\\%(\`\|$\)+
|
|
||||||
\ contains=cssTagName
|
|
||||||
|
|
||||||
" define custom API sections that trigger the styledDefinition highlighting
|
|
||||||
syn match styledPrefix "\<styled\>\.\k\+"
|
|
||||||
\ transparent fold
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
\ contains=cssTagName,javascriptTagRef
|
|
||||||
\ containedin=jsFuncBlock,jsParen,jsObject,jsObjectValue
|
|
||||||
syn match styledPrefix "\.\<attrs\>\s*(\%(\n\|\s\|.\)\{-})"
|
|
||||||
\ transparent fold extend
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
\ contains=jsObject,jsParen
|
|
||||||
\ containedin=jsFuncBlock,jsParen,jsObject,jsObjectValue
|
|
||||||
syn match styledPrefix "\.\<extend\>"
|
|
||||||
\ transparent fold
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
\ containedin=jsFuncBlock,jsParen,jsObject,jsObjectValue
|
|
||||||
|
|
||||||
" define emotion css prop
|
|
||||||
" to bypass problems from top-level defined xml/js definitions, this
|
|
||||||
" plugin re-defines keywords/noise for highlighting inside of the custom
|
|
||||||
" xmlAttrib definition
|
|
||||||
syn keyword styledXmlRegionKeyword css contained
|
|
||||||
syn match styledXmlRegionNoise "\%(=\|{\|}\)" contained
|
|
||||||
" only include styledDefinitions inside of xmlAttribs, that are wrapped
|
|
||||||
" in `css={}` regions, `keepend` is necessary to correctly break on the
|
|
||||||
" higher-level xmlAttrib region end
|
|
||||||
syn region styledXmlRegion
|
|
||||||
\ start="\<css\>={" end="}"
|
|
||||||
\ keepend fold
|
|
||||||
\ containedin=xmlAttrib
|
|
||||||
\ contains=styledXmlRegionKeyword,styledXmlRegionNoise,styledDefinition
|
|
||||||
|
|
||||||
" define nested region for indenting
|
|
||||||
syn region styledNestedRegion contained transparent
|
|
||||||
\ matchgroup=cssBraces
|
|
||||||
\ start="{" end="}"
|
|
||||||
|
|
||||||
" re-define cssError to be highlighted correctly in styledNestedRegion
|
|
||||||
syn match cssError contained "{@<>"
|
|
||||||
|
|
||||||
" extend javascript matches to trigger styledDefinition highlighting
|
|
||||||
syn match jsTaggedTemplate extend
|
|
||||||
\ "\<css\>\|\.\<resolve\>\|\.\<global\>\|\<keyframes\>\|\<injectGlobal\>\|\<fontFace\>\|\<createGlobalStyle\>"
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
syn match jsFuncCall "\<styled\>\s*(.\+)" transparent
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
syn match jsFuncCall "\<styled\>\s*(\%('\k\+'\|\"\k\+\"\|`\k\+`\))"
|
|
||||||
\ contains=styledTagNameString
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
syn match jsFuncCall "\.\<withComponent\>\s*(\%('\k\+'\|\"\k\+\"\|`\k\+`\))"
|
|
||||||
\ contains=styledTagNameString
|
|
||||||
syn match jsFuncCall "\<dc\>\s*(\%('\k\+'\|\"\k\+\"\|`\k\+`\))\%((\)\@="
|
|
||||||
\ contains=styledTagNameString
|
|
||||||
\ nextgroup=styledDefinitionArgument
|
|
||||||
|
|
||||||
" inject css highlighting into custom jsTemplateString region
|
|
||||||
" - use `extend` to not end all nested jsTemplateExpression on the first
|
|
||||||
" closing one
|
|
||||||
syn region styledDefinition contained transparent fold extend
|
|
||||||
\ start="`" end="`" skip="\\\%(`\|$\)"
|
|
||||||
\ contains=@CSSTop,
|
|
||||||
\ css.*Prop,cssValue.*,cssColor,cssUrl,cssImportant,cssError,
|
|
||||||
\ cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssVendor,
|
|
||||||
\ cssHacks,
|
|
||||||
\ cssCustom.*,
|
|
||||||
\ jsComment,jsTemplateExpression,
|
|
||||||
\ typescriptInterpolation,typescriptTemplateSubstitution,
|
|
||||||
\ styledAmpersand,styledNestedRegion
|
|
||||||
syn region styledDefinitionArgument contained transparent start=+(+ end=+)+
|
|
||||||
\ contains=styledDefinition
|
|
||||||
|
|
||||||
""" yajs specific extensions
|
|
||||||
" define template tag keywords, that trigger styledDefinitions again to be
|
|
||||||
" contained in and also do contain the `javascriptTagRef` region
|
|
||||||
syn match javascriptTagRefStyledPrefix transparent fold
|
|
||||||
\ "\<css\>\|\<keyframes\>\|\<injectGlobal\>\|\<fontFace\>\|\<createGlobalStyle\>"
|
|
||||||
\ containedin=javascriptTagRef
|
|
||||||
\ contains=javascriptTagRef
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
" extend the yajs clusters to include the previously and extraneously defined
|
|
||||||
" styled-related matches
|
|
||||||
syn cluster javascriptExpression
|
|
||||||
\ add=styledPrefix,jsFuncCall,javascriptTagRefStyledPrefix
|
|
||||||
syn cluster javascriptAfterIdentifier add=styledPrefix,jsFuncCall
|
|
||||||
|
|
||||||
" color the custom highlight elements
|
|
||||||
hi def link cssCustomKeyFrameSelector Constant
|
|
||||||
hi def link cssCustomPositioningPrefix StorageClass
|
|
||||||
hi def link styledAmpersand Special
|
|
||||||
|
|
||||||
hi def link styledXmlRegionKeyword Type
|
|
||||||
hi def link styledXmlRegionNoise Noise
|
|
||||||
hi def link styledXmlRegion String
|
|
||||||
|
|
||||||
|
|
||||||
if exists("s:current_syntax")
|
|
||||||
let b:current_syntax=s:current_syntax
|
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
if exists('b:current_syntax')
|
if exists('b:current_syntax')
|
||||||
let s:current_syntax = b:current_syntax
|
let s:current_syntax = b:current_syntax
|
||||||
@@ -25,3 +23,5 @@ hi def link graphqlTemplateExpression jsTemplateExpression
|
|||||||
|
|
||||||
syn cluster jsExpression add=graphqlTaggedTemplate
|
syn cluster jsExpression add=graphqlTaggedTemplate
|
||||||
syn cluster graphqlTaggedTemplate add=graphqlTemplateString
|
syn cluster graphqlTaggedTemplate add=graphqlTemplateString
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0)
|
let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0)
|
||||||
|
|
||||||
@@ -214,3 +212,5 @@ if s:vim_jsx_pretty_colorful_config == 1
|
|||||||
highlight def link jsFuncArgs Type
|
highlight def link jsFuncArgs Type
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'llvm') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Copyright (c) 2018 rhysd
|
" Copyright (c) 2018 rhysd
|
||||||
"
|
"
|
||||||
@@ -24,3 +22,5 @@ endif
|
|||||||
|
|
||||||
syn keyword llvmKeyword attributes
|
syn keyword llvmKeyword attributes
|
||||||
syn match llvmNoName /#\d\+\>/
|
syn match llvmNoName /#\d\+\>/
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mdx') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mdx') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
" based on mxw/vim-jsx
|
" based on mxw/vim-jsx
|
||||||
@@ -43,3 +41,5 @@ syn cluster jsExpression add=jsxRegion
|
|||||||
|
|
||||||
" Allow jsxRegion to contain reserved words.
|
" Allow jsxRegion to contain reserved words.
|
||||||
syn cluster javascriptNoReserved add=jsxRegion
|
syn cluster javascriptNoReserved add=jsxRegion
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mathematica') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
"Vim conceal file
|
"Vim conceal file
|
||||||
" Language: Mathematica
|
" Language: Mathematica
|
||||||
@@ -1448,3 +1446,5 @@ endif
|
|||||||
hi! link Conceal Normal
|
hi! link Conceal Normal
|
||||||
setlocal conceallevel=2
|
setlocal conceallevel=2
|
||||||
|
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'objc') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" ARC type modifiers
|
" ARC type modifiers
|
||||||
syn keyword objcTypeModifier __bridge __bridge_retained __bridge_transfer __autoreleasing __strong __weak __unsafe_unretained
|
syn keyword objcTypeModifier __bridge __bridge_retained __bridge_transfer __autoreleasing __strong __weak __unsafe_unretained
|
||||||
@@ -21,3 +19,5 @@ syn match objcDirective "@property\|@synthesize\|@dynamic\|@package"
|
|||||||
|
|
||||||
" Highlight property attributes as if they were type modifiers
|
" Highlight property attributes as if they were type modifiers
|
||||||
hi def link objcPropertyAttribute objcTypeModifier
|
hi def link objcPropertyAttribute objcTypeModifier
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'reason') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rspec') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rspec') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
"
|
"
|
||||||
" An rspec syntax file
|
" An rspec syntax file
|
||||||
@@ -34,3 +32,5 @@ syntax keyword rspecMessageExpectation advise any_args any_number_of_times anyth
|
|||||||
highlight link rspecMessageExpectation Function
|
highlight link rspecMessageExpectation Function
|
||||||
|
|
||||||
let b:current_syntax = 'rspec'
|
let b:current_syntax = 'rspec'
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'yard') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yard') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Ruby syntax extensions for highlighting YARD documentation.
|
" Ruby syntax extensions for highlighting YARD documentation.
|
||||||
"
|
"
|
||||||
@@ -128,3 +126,5 @@ hi def link yardParametricType yardComment
|
|||||||
hi def link yardArrow yardComment
|
hi def link yardArrow yardComment
|
||||||
hi def link yardHashAngle yardComment
|
hi def link yardHashAngle yardComment
|
||||||
hi def link yardHashCurly yardComment
|
hi def link yardHashCurly yardComment
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
||||||
@@ -43,3 +41,5 @@ if !get(g:, 'rust_conceal_mod_path', 0)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" vim: set et sw=4 sts=4 ts=8:
|
" vim: set et sw=4 sts=4 ts=8:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" adds support for cleverref package
|
" adds support for cleverref package
|
||||||
" \Cref, \cref, \cpageref, \labelcref, \labelcpageref
|
" \Cref, \cref, \cpageref, \labelcref, \labelcpageref
|
||||||
@@ -11,3 +9,5 @@ syn region texRefZone matchgroup=texStatement start="\\\(label\|\)c\(page\|\)re
|
|||||||
syn region texZone start="\\begin{lstlisting}" end="\\end{lstlisting}\|%stopzone\>"
|
syn region texZone start="\\begin{lstlisting}" end="\\end{lstlisting}\|%stopzone\>"
|
||||||
syn match texInputFile "\\lstinputlisting\s*\(\[.*\]\)\={.\{-}}" contains=texStatement,texInputCurlies,texInputFileOpt
|
syn match texInputFile "\\lstinputlisting\s*\(\[.*\]\)\={.\{-}}" contains=texStatement,texInputCurlies,texInputFileOpt
|
||||||
syn match texZone "\\lstinline\s*\(\[.*\]\)\={.\{-}}"
|
syn match texZone "\\lstinline\s*\(\[.*\]\)\={.\{-}}"
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
@@ -48,69 +46,5 @@ let b:current_syntax = 'typescript.tsx'
|
|||||||
|
|
||||||
let &cpo = s:jsx_cpo
|
let &cpo = s:jsx_cpo
|
||||||
unlet s:jsx_cpo
|
unlet s:jsx_cpo
|
||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1
|
|
||||||
finish
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
runtime! syntax/javascript.vim
|
|
||||||
|
|
||||||
" define custom API section, that contains typescript annotations
|
|
||||||
" this is structurally similar to `jsFuncCall`, but allows type
|
|
||||||
" annotations (delimited by brackets (e.g. "<>")) between `styled` and
|
|
||||||
" the function call parenthesis
|
|
||||||
syn match styledTypescriptPrefix
|
|
||||||
\ "\<styled\><\%(\[\|\]\|{\|}\||\|&\|:\|;\|,\|?\|'\|\"\|\k\|\s\|\n\)\+>(\%('\k\+'\|\"\k\+\"\|\k\+\))"
|
|
||||||
\ transparent fold extend
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
\ contains=cssTagName,
|
|
||||||
\ typescriptBraces,typescriptOpSymbols,typescriptEndColons,
|
|
||||||
\ typescriptParens,typescriptStringS,@typescriptType,
|
|
||||||
\ typescriptType,foldBraces,
|
|
||||||
\ styledTagNameString
|
|
||||||
\ containedin=foldBraces
|
|
||||||
syn match styledTypescriptPrefix
|
|
||||||
\ "\<styled\>\%((\%('\k\+'\|\"\k\+\"\|\k\+\))\|\.\k\+\)<\%(\[\|\]\|{\|}\||\|&\|:\|;\|,\|?\|'\|\"\|\k\|\s\|\n\)\+>"
|
|
||||||
\ transparent fold extend
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
\ contains=cssTagName,
|
|
||||||
\ typescriptBraces,typescriptOpSymbols,typescriptEndColons,
|
|
||||||
\ typescriptParens,typescriptStringS,@typescriptType,
|
|
||||||
\ typescriptType,foldBraces,
|
|
||||||
\ styledTagNameString
|
|
||||||
\ containedin=foldBraces
|
|
||||||
syn match styledTypescriptPrefix "\.\<attrs\>\s*(\%(\n\|\s\|.\)\{-})<\%(\[\|\]\|{\|}\||\|&\|:\|;\|,\|?\|'\|\"\|\k\|\s\|\n\)\+>"
|
|
||||||
\ transparent fold extend
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
\ contains=cssTagName,
|
|
||||||
\ typescriptBraces,typescriptOpSymbols,typescriptEndColons,
|
|
||||||
\ typescriptParens,typescriptStringS,@typescriptType,
|
|
||||||
\ typescriptType,foldBraces,
|
|
||||||
\ styledTagNameString
|
|
||||||
\ containedin=foldBraces
|
|
||||||
syn match styledTypescriptPrefix "\.\<extend\><\%(\[\|\]\|{\|}\||\|&\|:\|;\|,\|?\|'\|\"\|\k\|\s\|\n\)\+>"
|
|
||||||
\ transparent fold extend
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
\ contains=cssTagName,
|
|
||||||
\ typescriptBraces,typescriptOpSymbols,typescriptEndColons,
|
|
||||||
\ typescriptParens,typescriptStringS,@typescriptType,
|
|
||||||
\ typescriptType,foldBraces,
|
|
||||||
\ styledTagNameString
|
|
||||||
\ containedin=foldBraces
|
|
||||||
|
|
||||||
syn match jsFuncCall "\<styled\>\s*(\%('\k\+'\|\"\k\+\"\|`\k\+`\))<\%(\[\|\]\|{\|}\||\|&\|:\|;\|,\|?\|'\|\"\|\k\|\s\|\n\)\+>"
|
|
||||||
\ transparent fold
|
|
||||||
\ contains=typescriptBraces,typescriptOpSymbols,typescriptEndColons,
|
|
||||||
\ typescriptParens,typescriptStringS,@typescriptType,
|
|
||||||
\ typescriptType,foldBraces,
|
|
||||||
\ styledTagNameString
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
\ containedin=foldBraces
|
|
||||||
|
|
||||||
syn cluster typescriptValue add=styledPrefix,jsFuncCall,styledTypescriptPrefix
|
|
||||||
|
|
||||||
""" yats specific extensions
|
|
||||||
" extend typescriptIdentifierName to allow styledDefinitions in their
|
|
||||||
" tagged templates
|
|
||||||
syn match typescriptIdentifierName extend
|
|
||||||
\ "\<css\>\|\<keyframes\>\|\<injectGlobal\>\|\<fontFace\>\|\<createGlobalStyle\>"
|
|
||||||
\ nextgroup=styledDefinition
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
if exists('b:current_syntax')
|
if exists('b:current_syntax')
|
||||||
let s:current_syntax = b:current_syntax
|
let s:current_syntax = b:current_syntax
|
||||||
@@ -24,3 +22,5 @@ hi def link graphqlTemplateExpression typescriptTemplateSubstitution
|
|||||||
|
|
||||||
syn cluster typescriptExpression add=graphqlTaggedTemplate
|
syn cluster typescriptExpression add=graphqlTaggedTemplate
|
||||||
syn cluster graphqlTaggedTemplate add=graphqlTemplateString
|
syn cluster graphqlTaggedTemplate add=graphqlTemplateString
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'yaml') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" To make this file do stuff, add something like the following (without the
|
" To make this file do stuff, add something like the following (without the
|
||||||
" leading ") to your ~/.vimrc:
|
" leading ") to your ~/.vimrc:
|
||||||
@@ -63,3 +61,5 @@ hi link yamlInline Operator
|
|||||||
hi link yamlBlock Operator
|
hi link yamlBlock Operator
|
||||||
hi link yamlString String
|
hi link yamlString String
|
||||||
hi link yamlEscape Special
|
hi link yamlEscape Special
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Support for LaTex-to-Unicode conversion as in the Julia REPL "
|
" Support for LaTex-to-Unicode conversion as in the Julia REPL "
|
||||||
@@ -652,3 +650,5 @@ function! LaTeXtoUnicode#Toggle()
|
|||||||
endif
|
endif
|
||||||
return
|
return
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rst') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Author: Antony Lee <anntzer.lee@gmail.com>
|
" Author: Antony Lee <anntzer.lee@gmail.com>
|
||||||
" Description: Helper functions for reStructuredText syntax folding
|
" Description: Helper functions for reStructuredText syntax folding
|
||||||
@@ -64,3 +62,5 @@ function RstFold#GetRstFoldText()
|
|||||||
let text = thisline =~ '^\([=`:.''"~^_*+#-]\)\1\+$' ? getline(v:foldstart + 1) : thisline
|
let text = thisline =~ '^\([=`:.''"~^_*+#-]\)\1\+$' ? getline(v:foldstart + 1) : thisline
|
||||||
return indent . text
|
return indent . text
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! cargo#Load()
|
function! cargo#Load()
|
||||||
" Utility call to get this script loaded, for debugging
|
" Utility call to get this script loaded, for debugging
|
||||||
@@ -117,3 +115,5 @@ function! cargo#runtarget(args)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" vim: set et sw=4 sts=4 ts=8:
|
" vim: set et sw=4 sts=4 ts=8:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! cargo#quickfix#CmdPre() abort
|
function! cargo#quickfix#CmdPre() abort
|
||||||
if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo'
|
if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo'
|
||||||
@@ -28,3 +26,5 @@ function! cargo#quickfix#CmdPost() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" vim: set et sw=4 sts=4 ts=8:
|
" vim: set et sw=4 sts=4 ts=8:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'clojure') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: Clojure
|
" Language: Clojure
|
||||||
@@ -24,3 +22,5 @@ function! clojurecomplete#Complete(findstart, base)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" vim:sts=8:sw=8:ts=8:noet
|
" vim:sts=8:sw=8:ts=8:noet
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Language: CoffeeScript
|
" Language: CoffeeScript
|
||||||
" Maintainer: Mick Koch <mick@kochm.co>
|
" Maintainer: Mick Koch <mick@kochm.co>
|
||||||
@@ -56,3 +54,5 @@ function! coffee#CoffeeSetUpErrorFormat()
|
|||||||
\%f:%l:%c:\ error:\ %m,
|
\%f:%l:%c:\ error:\ %m,
|
||||||
\%-G%.%#
|
\%-G%.%#
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
@@ -342,3 +340,5 @@ endfunction
|
|||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'csv') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csv') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Filetype plugin for editing CSV files. "{{{1
|
" Filetype plugin for editing CSV files. "{{{1
|
||||||
" Author: Christian Brabandt <cb@256bit.org>
|
" Author: Christian Brabandt <cb@256bit.org>
|
||||||
@@ -3189,3 +3187,5 @@ endfun
|
|||||||
|
|
||||||
" Vim Modeline " {{{2
|
" Vim Modeline " {{{2
|
||||||
" vim: set foldmethod=marker et sw=0 sts=-1 ts=4:
|
" vim: set foldmethod=marker et sw=0 sts=-1 ts=4:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dart') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
function! s:error(text) abort
|
function! s:error(text) abort
|
||||||
@@ -186,3 +184,5 @@ function! dart#setModifiable() abort
|
|||||||
setlocal nomodifiable
|
setlocal nomodifiable
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
let s:path = expand('<sfile>:h')
|
let s:path = expand('<sfile>:h')
|
||||||
let s:cmd = join(['mix', 'run', '--no-start', '--no-compile', shellescape(s:path.'/get_repos.exs')])
|
let s:cmd = join(['mix', 'run', '--no-start', '--no-compile', shellescape(s:path.'/get_repos.exs')])
|
||||||
@@ -22,3 +20,5 @@ endfunction
|
|||||||
function! db#adapter#ecto#complete_opaque(url) abort
|
function! db#adapter#ecto#complete_opaque(url) abort
|
||||||
return map(s:repo_list(), 'v:val[0]')
|
return map(s:repo_list(), 'v:val[0]')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
if !exists("g:elixir_indent_max_lookbehind")
|
if !exists("g:elixir_indent_max_lookbehind")
|
||||||
let g:elixir_indent_max_lookbehind = 30
|
let g:elixir_indent_max_lookbehind = 30
|
||||||
@@ -363,3 +361,5 @@ function! elixir#indent#handle_inside_generic_block(context)
|
|||||||
return -1
|
return -1
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! elixir#util#get_filename(word) abort
|
function! elixir#util#get_filename(word) abort
|
||||||
let word = a:word
|
let word = a:word
|
||||||
@@ -26,3 +24,5 @@ function! elixir#util#get_filename(word) abort
|
|||||||
|
|
||||||
return word
|
return word
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elm') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
let s:errors = []
|
let s:errors = []
|
||||||
|
|
||||||
@@ -383,3 +381,5 @@ function! s:ExecuteInRoot(cmd) abort
|
|||||||
|
|
||||||
return l:out
|
return l:out
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elm') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" IsWin returns 1 if current OS is Windows or 0 otherwise
|
" IsWin returns 1 if current OS is Windows or 0 otherwise
|
||||||
fun! elm#util#IsWin() abort
|
fun! elm#util#IsWin() abort
|
||||||
@@ -182,3 +180,5 @@ function! s:error(msg)
|
|||||||
echohl NONE
|
echohl NONE
|
||||||
let v:errmsg = a:msg
|
let v:errmsg = a:msg
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'fish') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! fish#Indent()
|
function! fish#Indent()
|
||||||
let l:shiftwidth = shiftwidth()
|
let l:shiftwidth = shiftwidth()
|
||||||
@@ -69,3 +67,5 @@ endfunction
|
|||||||
function! fish#errorformat()
|
function! fish#errorformat()
|
||||||
return '%Afish: %m,%-G%*\\ ^,%-Z%f (line %l):%s'
|
return '%Afish: %m,%-G%*\\ ^,%-Z%f (line %l):%s'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" don't spam the user when Vim is started in Vi compatibility mode
|
" don't spam the user when Vim is started in Vi compatibility mode
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
@@ -228,7 +226,7 @@ function! go#config#DebugCommands() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#DebugLogOutput() abort
|
function! go#config#DebugLogOutput() abort
|
||||||
return get(g:, 'go_debug_log_output', 'debugger, rpc')
|
return get(g:, 'go_debug_log_output', 'debugger,rpc')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#LspLog() abort
|
function! go#config#LspLog() abort
|
||||||
@@ -262,7 +260,7 @@ function! go#config#SetTemplateAutocreate(value) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#MetalinterCommand() abort
|
function! go#config#MetalinterCommand() abort
|
||||||
return get(g:, "go_metalinter_command", "gometalinter")
|
return get(g:, "go_metalinter_command", "golangci-lint")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#MetalinterAutosaveEnabled() abort
|
function! go#config#MetalinterAutosaveEnabled() abort
|
||||||
@@ -494,3 +492,5 @@ let &cpo = s:cpo_save
|
|||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|
||||||
" vim: sw=2 ts=2 et
|
" vim: sw=2 ts=2 et
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim plugin
|
" Vim plugin
|
||||||
" Language: GraphQL
|
" Language: GraphQL
|
||||||
@@ -14,3 +12,5 @@ let g:autoloaded_graphql = 1
|
|||||||
function! graphql#javascript_tags() abort
|
function! graphql#javascript_tags() abort
|
||||||
return get(g:, 'graphql_javascript_tags', ['gql', 'graphql', 'Relay.QL'])
|
return get(g:, 'graphql_javascript_tags', ['gql', 'graphql', 'Relay.QL'])
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: HTML and XHTML
|
" Language: HTML and XHTML
|
||||||
@@ -843,3 +841,5 @@ function! htmlcomplete#CheckDoctype() " {{{
|
|||||||
endfunction
|
endfunction
|
||||||
" }}}
|
" }}}
|
||||||
" vim:set foldmethod=marker:
|
" vim:set foldmethod=marker:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! jsx_pretty#comment#update_commentstring(original)
|
function! jsx_pretty#comment#update_commentstring(original)
|
||||||
let syn_current = s:syn_name(line('.'), col('.'))
|
let syn_current = s:syn_name(line('.'), col('.'))
|
||||||
let syn_start = s:syn_name(line('.'), 1)
|
let syn_start = s:syn_name(line('.'), 1)
|
||||||
let save_cursor = getcurpos()
|
let save_view = winsaveview()
|
||||||
|
|
||||||
if syn_start =~? '^jsx'
|
if syn_start =~? '^jsx'
|
||||||
let line = getline(".")
|
let line = getline(".")
|
||||||
@@ -26,7 +24,7 @@ function! jsx_pretty#comment#update_commentstring(original)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Restore the cursor position
|
" Restore the cursor position
|
||||||
call setpos('.', save_cursor)
|
call winrestview(save_view)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:syn_name(lnum, cnum)
|
function! s:syn_name(lnum, cnum)
|
||||||
@@ -39,3 +37,5 @@ function! s:syn_contains(lnum, cnum, syn_name)
|
|||||||
let syn_names = map(stack, 'synIDattr(v:val, "name")')
|
let syn_names = map(stack, 'synIDattr(v:val, "name")')
|
||||||
return index(syn_names, a:syn_name) >= 0
|
return index(syn_names, a:syn_name) >= 0
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
if exists('*shiftwidth')
|
if exists('*shiftwidth')
|
||||||
function! s:sw()
|
function! s:sw()
|
||||||
@@ -216,3 +214,5 @@ function! jsx_pretty#indent#get(js_indent)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! julia#set_syntax_version(jvers)
|
function! julia#set_syntax_version(jvers)
|
||||||
if &filetype != "julia"
|
if &filetype != "julia"
|
||||||
@@ -186,3 +184,5 @@ function! julia#gotodefinition()
|
|||||||
return
|
return
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" path to the julia binary to communicate with
|
" path to the julia binary to communicate with
|
||||||
if has('win32') || has('win64')
|
if has('win32') || has('win64')
|
||||||
@@ -244,3 +242,5 @@ function! s:likely(str) abort
|
|||||||
let output = systemlist(cmd)
|
let output = systemlist(cmd)
|
||||||
return split(matchstr(output[0], '\C^search: \zs.*'))
|
return split(matchstr(output[0], '\C^search: \zs.*'))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Facilities for moving around Julia blocks (e.g. if/end, function/end etc.)
|
" Facilities for moving around Julia blocks (e.g. if/end, function/end etc.)
|
||||||
" (AKA a collection of horrible hacks)
|
" (AKA a collection of horrible hacks)
|
||||||
@@ -796,3 +794,5 @@ function! s:cursor_moved(...)
|
|||||||
let b:jlblk_did_select = b:jlblk_doing_select
|
let b:jlblk_did_select = b:jlblk_doing_select
|
||||||
let b:jlblk_doing_select = 0
|
let b:jlblk_doing_select = 0
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" This file is autogenerated from the script 'generate_latex_symbols_table.jl'
|
" This file is autogenerated from the script 'generate_latex_symbols_table.jl'
|
||||||
" The symbols are based on Julia version 1.3.0-DEV.263
|
" The symbols are based on Julia version 1.3.0-DEV.263
|
||||||
@@ -3332,3 +3330,5 @@ function! julia_latex_symbols#get_dict()
|
|||||||
\ '\:baggage_claim:': '🛄',
|
\ '\:baggage_claim:': '🛄',
|
||||||
\ '\:left_luggage:': '🛅'}
|
\ '\:left_luggage:': '🛅'}
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'pony') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim plugin file
|
" Vim plugin file
|
||||||
" Language: Pony
|
" Language: Pony
|
||||||
@@ -534,3 +532,5 @@ endfunction
|
|||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! puppet#align#IndentLevel(lnum)
|
function! puppet#align#IndentLevel(lnum)
|
||||||
return indent(a:lnum) / &shiftwidth
|
return indent(a:lnum) / &shiftwidth
|
||||||
@@ -70,3 +68,5 @@ function! puppet#align#AlignHashrockets(...) abort
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
if !exists('s:ctags_type')
|
if !exists('s:ctags_type')
|
||||||
@@ -38,3 +36,5 @@ function! puppet#ctags#Type()
|
|||||||
return s:ctags_type
|
return s:ctags_type
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
"
|
"
|
||||||
" Simple format using puppet's l:indents and align hashrockets function
|
" Simple format using puppet's l:indents and align hashrockets function
|
||||||
@@ -59,3 +57,5 @@ function! puppet#format#Fallback(start_lnum, end_lnum) abort
|
|||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'python-compiler') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Sometimes Python issues debugging messages
|
" Sometimes Python issues debugging messages
|
||||||
" which don't belong to a call stack context
|
" which don't belong to a call stack context
|
||||||
@@ -19,3 +17,5 @@ function! python#utils#fix_qflist() " {{{
|
|||||||
call setqflist(l:traceback)
|
call setqflist(l:traceback)
|
||||||
endif
|
endif
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: Ruby
|
" Language: Ruby
|
||||||
@@ -878,3 +876,5 @@ call s:DefRuby()
|
|||||||
"}}} ruby-side code
|
"}}} ruby-side code
|
||||||
|
|
||||||
" vim:tw=78:sw=4:ts=8:et:fdm=marker:ft=vim:norl:
|
" vim:tw=78:sw=4:ts=8:et:fdm=marker:ft=vim:norl:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Author: Kevin Ballard
|
" Author: Kevin Ballard
|
||||||
" Description: Helper functions for Rust commands/mappings
|
" Description: Helper functions for Rust commands/mappings
|
||||||
@@ -548,3 +546,5 @@ endfunction
|
|||||||
" }}}1
|
" }}}1
|
||||||
|
|
||||||
" vim: set et sw=4 sts=4 ts=8:
|
" vim: set et sw=4 sts=4 ts=8:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" For debugging, inspired by https://github.com/w0rp/rust/blob/master/autoload/rust/debugging.vim
|
" For debugging, inspired by https://github.com/w0rp/rust/blob/master/autoload/rust/debugging.vim
|
||||||
|
|
||||||
@@ -105,3 +103,5 @@ function! rust#debugging#InfoToFile(filename) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" vim: set et sw=4 sts=4 ts=8:
|
" vim: set et sw=4 sts=4 ts=8:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
let s:delimitMate_extra_excluded_regions = ',rustLifetimeCandidate,rustGenericLifetimeCandidate'
|
let s:delimitMate_extra_excluded_regions = ',rustLifetimeCandidate,rustGenericLifetimeCandidate'
|
||||||
|
|
||||||
@@ -46,3 +44,5 @@ endfunction
|
|||||||
|
|
||||||
" vim: set et sw=4 sts=4 ts=8:
|
" vim: set et sw=4 sts=4 ts=8:
|
||||||
|
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Tagbar support code, for the sake of not automatically overriding its
|
" Tagbar support code, for the sake of not automatically overriding its
|
||||||
" configuration in case Universal Ctags is detected.
|
" configuration in case Universal Ctags is detected.
|
||||||
@@ -19,3 +17,5 @@ function! rust#tags#IsUCtags() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" vim: set et sw=4 sts=4 ts=8:
|
" vim: set et sw=4 sts=4 ts=8:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Author: Stephen Sugden <stephen@stephensugden.com>
|
" Author: Stephen Sugden <stephen@stephensugden.com>
|
||||||
"
|
"
|
||||||
@@ -264,3 +262,5 @@ endfunction
|
|||||||
|
|
||||||
|
|
||||||
" vim: set et sw=4 sts=4 ts=8:
|
" vim: set et sw=4 sts=4 ts=8:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'smt2') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'smt2') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Invokes the solver on current file
|
" Invokes the solver on current file
|
||||||
function! smt2#RunSolver()
|
function! smt2#RunSolver()
|
||||||
@@ -32,3 +30,5 @@ function! smt2#PrintSolverVersion()
|
|||||||
silent !clear
|
silent !clear
|
||||||
execute "!" . g:smt2_solver_command . " " . g:smt2_solver_version_switch
|
execute "!" . g:smt2_solver_command . " " . g:smt2_solver_version_switch
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'terraform') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! terraform#fmt()
|
function! terraform#fmt()
|
||||||
if !filereadable(expand('%:p'))
|
if !filereadable(expand('%:p'))
|
||||||
@@ -58,3 +56,5 @@ function! terraform#commands(A, L, P)
|
|||||||
\ 'state'
|
\ 'state'
|
||||||
\ ]
|
\ ]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vifm') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" common functions for vifm command-line editing buffer filetype plugins
|
" common functions for vifm command-line editing buffer filetype plugins
|
||||||
" Maintainer: xaizek <xaizek@posteo.net>
|
" Maintainer: xaizek <xaizek@posteo.net>
|
||||||
@@ -16,3 +14,5 @@ function! vifm#edit#Init()
|
|||||||
" Start buffer editing in insert mode
|
" Start buffer editing in insert mode
|
||||||
startinsert
|
startinsert
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vifm') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" common functions for vifm plugin related to globals
|
" common functions for vifm plugin related to globals
|
||||||
" Maintainer: xaizek <xaizek@posteo.net>
|
" Maintainer: xaizek <xaizek@posteo.net>
|
||||||
@@ -33,3 +31,5 @@ function! vifm#globals#Init()
|
|||||||
let g:vifm_embed_term = has('gui_running')
|
let g:vifm_embed_term = has('gui_running')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
let s:_plugin_name = expand('<sfile>:t:r')
|
let s:_plugin_name = expand('<sfile>:t:r')
|
||||||
|
|
||||||
@@ -11,3 +9,5 @@ endfunction
|
|||||||
function! vital#{s:_plugin_name}#function(funcname) abort
|
function! vital#{s:_plugin_name}#function(funcname) abort
|
||||||
silent! return function(a:funcname)
|
silent! return function(a:funcname)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" ___vital___
|
" ___vital___
|
||||||
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
|
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
|
||||||
@@ -189,3 +187,5 @@ endfunction
|
|||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" ___vital___
|
" ___vital___
|
||||||
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
|
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
|
||||||
@@ -466,3 +464,5 @@ let &cpo = s:save_cpo
|
|||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
||||||
" vim:set et ts=2 sts=2 sw=2 tw=0:
|
" vim:set et ts=2 sts=2 sw=2 tw=0:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" ___vital___
|
" ___vital___
|
||||||
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
|
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
|
||||||
@@ -629,3 +627,5 @@ endfunction
|
|||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
" vim:set et ts=2 sts=2 sw=2 tw=0:
|
" vim:set et ts=2 sts=2 sw=2 tw=0:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" ___vital___
|
" ___vital___
|
||||||
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
|
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
|
||||||
@@ -175,3 +173,5 @@ let &cpo = s:save_cpo
|
|||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
||||||
" vim:set et ts=2 sts=2 sw=2 tw=0:
|
" vim:set et ts=2 sts=2 sw=2 tw=0:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" ___vital___
|
" ___vital___
|
||||||
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
|
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
|
||||||
@@ -180,3 +178,5 @@ let &cpo = s:save_cpo
|
|||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
||||||
" vim:set et ts=2 sts=2 sw=2 tw=0:
|
" vim:set et ts=2 sts=2 sw=2 tw=0:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
let s:plugin_name = expand('<sfile>:t:r')
|
let s:plugin_name = expand('<sfile>:t:r')
|
||||||
let s:vital_base_dir = expand('<sfile>:h')
|
let s:vital_base_dir = expand('<sfile>:h')
|
||||||
@@ -330,3 +328,5 @@ else
|
|||||||
return a:list
|
return a:list
|
||||||
endfunction
|
endfunction
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
crystal
|
crystal
|
||||||
bee84ae23effb0510137ad177e98c94d8b3657a6
|
bee84ae23effb0510137ad177e98c94d8b3657a6
|
||||||
@@ -8,3 +6,5 @@ bee84ae23effb0510137ad177e98c94d8b3657a6
|
|||||||
Process
|
Process
|
||||||
Web.JSON
|
Web.JSON
|
||||||
ColorEcho
|
ColorEcho
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim completion for WAI-ARIA data file
|
" Vim completion for WAI-ARIA data file
|
||||||
" Language: HTML + WAI-ARIA
|
" Language: HTML + WAI-ARIA
|
||||||
@@ -459,3 +457,5 @@ let g:xmldata_aria = {
|
|||||||
\ 'default_role': default_role,
|
\ 'default_role': default_role,
|
||||||
\ 'vimariaattrinfo': aria_attributes_value
|
\ 'vimariaattrinfo': aria_attributes_value
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim completion for HTML5 data file
|
" Vim completion for HTML5 data file
|
||||||
" Language: HTML (version 5.1 Draft 2016 Jan 13)
|
" Language: HTML (version 5.1 Draft 2016 Jan 13)
|
||||||
@@ -872,3 +870,5 @@ let g:xmldata_html5 = {
|
|||||||
\ 'wbr': ['/>', ''],
|
\ 'wbr': ['/>', ''],
|
||||||
\ },
|
\ },
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'zig') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! zig#config#ListTypeCommands() abort
|
function! zig#config#ListTypeCommands() abort
|
||||||
return get(g:, 'zig_list_type_commands', {})
|
return get(g:, 'zig_list_type_commands', {})
|
||||||
@@ -41,3 +39,5 @@ endfunction
|
|||||||
function! zig#config#Debug() abort
|
function! zig#config#Debug() abort
|
||||||
return get(g:, 'zig_debug', [])
|
return get(g:, 'zig_debug', [])
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'zig') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Adapted from fatih/vim-go: autoload/go/fmt.vim
|
" Adapted from fatih/vim-go: autoload/go/fmt.vim
|
||||||
"
|
"
|
||||||
@@ -168,3 +166,5 @@ function! zig#fmt#ToggleFmtAutoSave() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" vim: sw=2 ts=2 et
|
" vim: sw=2 ts=2 et
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'zig') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Adapted from fatih/vim-go: autoload/go/list.vim
|
" Adapted from fatih/vim-go: autoload/go/list.vim
|
||||||
"
|
"
|
||||||
@@ -160,3 +158,5 @@ function! zig#list#Type(for) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" vim: sw=2 ts=2 et
|
" vim: sw=2 ts=2 et
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'zig') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Adapted from vim-go: autoload/go/util.vim
|
" Adapted from vim-go: autoload/go/util.vim
|
||||||
"
|
"
|
||||||
@@ -392,3 +390,5 @@ function! zig#util#HasDebug(flag)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" vim: sw=2 ts=2 et
|
" vim: sw=2 ts=2 et
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
3
build
3
build
@@ -222,7 +222,7 @@ PACKS="
|
|||||||
json5:GutenYe/json5.vim
|
json5:GutenYe/json5.vim
|
||||||
json:elzr/vim-json
|
json:elzr/vim-json
|
||||||
jst:briancollins/vim-jst
|
jst:briancollins/vim-jst
|
||||||
jsx:MaxMEllon/vim-jsx-pretty
|
jsx:MaxMEllon/vim-jsx-pretty:_ALL
|
||||||
julia:JuliaEditorSupport/julia-vim
|
julia:JuliaEditorSupport/julia-vim
|
||||||
kotlin:udalov/kotlin-vim
|
kotlin:udalov/kotlin-vim
|
||||||
latex:LaTeX-Box-Team/LaTeX-Box
|
latex:LaTeX-Box-Team/LaTeX-Box
|
||||||
@@ -276,7 +276,6 @@ PACKS="
|
|||||||
slime:slime-lang/vim-slime-syntax
|
slime:slime-lang/vim-slime-syntax
|
||||||
smt2:bohlender/vim-smt2
|
smt2:bohlender/vim-smt2
|
||||||
solidity:tomlion/vim-solidity
|
solidity:tomlion/vim-solidity
|
||||||
styled-components:styled-components/vim-styled-components#main:_ALL
|
|
||||||
stylus:wavded/vim-stylus
|
stylus:wavded/vim-stylus
|
||||||
svelte:evanleck/vim-svelte
|
svelte:evanleck/vim-svelte
|
||||||
svg-indent:jasonshell/vim-svg-indent
|
svg-indent:jasonshell/vim-svg-indent
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Language: CoffeeScript
|
" Language: CoffeeScript
|
||||||
" Maintainer: Mick Koch <mick@kochm.co>
|
" Maintainer: Mick Koch <mick@kochm.co>
|
||||||
@@ -17,3 +15,5 @@ call coffee#CoffeeSetUpVariables()
|
|||||||
exec 'CompilerSet makeprg=' . escape(g:coffee_cake . ' ' .
|
exec 'CompilerSet makeprg=' . escape(g:coffee_cake . ' ' .
|
||||||
\ g:coffee_cake_options . ' $*', ' ')
|
\ g:coffee_cake_options . ' $*', ' ')
|
||||||
call coffee#CoffeeSetUpErrorFormat()
|
call coffee#CoffeeSetUpErrorFormat()
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Cargo Compiler
|
" Compiler: Cargo Compiler
|
||||||
@@ -51,3 +49,5 @@ unlet s:save_cpo
|
|||||||
" vint: +ProhibitAbbreviationOption
|
" vint: +ProhibitAbbreviationOption
|
||||||
|
|
||||||
" vim: set et sw=4 sts=4 ts=8:
|
" vim: set et sw=4 sts=4 ts=8:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Language: CoffeeScript
|
" Language: CoffeeScript
|
||||||
" Maintainer: Mick Koch <mick@kochm.co>
|
" Maintainer: Mick Koch <mick@kochm.co>
|
||||||
@@ -84,3 +82,5 @@ augroup CoffeeUpdateMakePrg
|
|||||||
autocmd BufWritePre,BufFilePost call s:UpdateMakePrg()
|
autocmd BufWritePre,BufFilePost call s:UpdateMakePrg()
|
||||||
endif
|
endif
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
if exists('current_compiler')
|
if exists('current_compiler')
|
||||||
finish
|
finish
|
||||||
@@ -13,3 +11,5 @@ endif
|
|||||||
|
|
||||||
CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%f:%l:\ %t:\ %m
|
CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%f:%l:\ %t:\ %m
|
||||||
CompilerSet makeprg=mix\ credo\ suggest\ --format=flycheck
|
CompilerSet makeprg=mix\ credo\ suggest\ --format=flycheck
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cryptol') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Cryptol version 1.8.19-academic Compiler
|
" Compiler: Cryptol version 1.8.19-academic Compiler
|
||||||
@@ -22,3 +20,5 @@ CompilerSet errorformat& " use the default 'errorformat'
|
|||||||
|
|
||||||
" "%<" means the current file name without extension.
|
" "%<" means the current file name without extension.
|
||||||
CompilerSet makeprg=cryptol\ -o\ %<\ %
|
CompilerSet makeprg=cryptol\ -o\ %<\ %
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cucumber') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Cucumber
|
" Compiler: Cucumber
|
||||||
@@ -31,3 +29,5 @@ let &cpo = s:cpo_save
|
|||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|
||||||
" vim:set sw=2 sts=2:
|
" vim:set sw=2 sts=2:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Language: eRuby
|
" Language: eRuby
|
||||||
@@ -41,3 +39,5 @@ let &cpo = s:cpo_save
|
|||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|
||||||
" vim: nowrap sw=2 sts=2 ts=8:
|
" vim: nowrap sw=2 sts=2 ts=8:
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Vim compiler plugin
|
" Vim compiler plugin
|
||||||
" Language: JavaScript
|
" Language: JavaScript
|
||||||
@@ -18,3 +16,5 @@ endif
|
|||||||
|
|
||||||
CompilerSet makeprg=eslint\ -f\ compact\ %
|
CompilerSet makeprg=eslint\ -f\ compact\ %
|
||||||
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m
|
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
@@ -27,3 +25,5 @@ let &cpo = s:cpo_save
|
|||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|
||||||
" vim: nowrap sw=2 sts=2 ts=8:
|
" vim: nowrap sw=2 sts=2 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