Skip to content

Commit 6ac337e

Browse files
author
Isaac Andrade
committed
Update packages
1 parent a0d57ea commit 6ac337e

File tree

142 files changed

+1787
-3276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+1787
-3276
lines changed

sources_non_forked/ack.vim/README.md

-9
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,6 @@ optional background search execution with [vim-dispatch], and auto-previewing.
129129

130130
Please see [the Github releases page][releases].
131131

132-
### 1.0.9 (unreleased)
133-
134-
* Fix location list and layout of quickfix when using Dispatch (#154)
135-
* Fix the quick help overlay clobbering the list mappings
136-
* Fix `:AckFile` when using Dispatch
137-
* Restore original `'makeprg'` and `'errorformat'` when using Dispatch
138-
* Arrow keys also work for auto-preview (#158)
139-
* Internal refactoring and clean-up
140-
141132
## Credits
142133

143134
This plugin is derived from Antoine Imbert's blog post [Ack and Vim

sources_non_forked/ag.vim/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ In the quickfix window, you can use:
6767
gv to open in vertical split silently
6868
q to close the quickfix window
6969

70+
### Related Plugin ###
71+
[vim-ag-anything](https://github.com/Chun-Yang/vim-ag-anything) adds an 'ga' action to search any text object.
72+
7073
### Acknowledgements ###
7174

7275
This Vim plugin is derived (and by derived, I mean copied, almost entirely)

sources_non_forked/goyo.vim/autoload/goyo.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function! s:get_color(group, attr)
3333
endfunction
3434

3535
function! s:set_color(group, attr, color)
36-
let gui = has('gui_running')
36+
let gui = a:color =~ '^#'
3737
execute printf("hi %s %s%s=%s", a:group, gui ? 'gui' : 'cterm', a:attr, a:color)
3838
endfunction
3939

@@ -106,7 +106,7 @@ function! s:resize_pads()
106106
endfunction
107107

108108
function! s:tranquilize()
109-
let bg = s:get_color('Normal', 'bg')
109+
let bg = s:get_color('Normal', 'bg#')
110110
for grp in ['NonText', 'FoldColumn', 'ColorColumn', 'VertSplit',
111111
\ 'StatusLine', 'StatusLineNC', 'SignColumn']
112112
" -1 on Vim / '' on GVim

sources_non_forked/syntastic/autoload/syntastic/log.vim

+8-1
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,17 @@ endfunction " }}}2
173173

174174
" Utilities {{{1
175175

176-
function! s:_log_timestamp() abort " {{{2
176+
function! s:_log_timestamp_smart() abort " {{{2
177+
return printf('syntastic: %f: ', reltimefloat(reltime(g:_SYNTASTIC_START)))
178+
endfunction " }}}2
179+
180+
function! s:_log_timestamp_dumb() abort " {{{2
177181
return 'syntastic: ' . split(reltimestr(reltime(g:_SYNTASTIC_START)))[0] . ': '
178182
endfunction " }}}2
179183

184+
let s:_log_timestamp = function(has('float') && exists('*reltimefloat') ? 's:_log_timestamp_smart' : 's:_log_timestamp_dumb')
185+
lockvar s:_log_timestamp
186+
180187
function! s:_format_variable(name) abort " {{{2
181188
let vals = []
182189
if exists('g:syntastic_' . a:name)

sources_non_forked/syntastic/autoload/syntastic/preprocess.vim

+36
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,42 @@ function! syntastic#preprocess#rparse(errors) abort " {{{2
284284
return out
285285
endfunction " }}}2
286286

287+
function! syntastic#preprocess#scss_lint(errors) abort " {{{2
288+
let errs = join(a:errors, '')
289+
if errs ==# ''
290+
return []
291+
endif
292+
293+
let json = s:_decode_JSON(errs)
294+
295+
let out = []
296+
if type(json) == type({})
297+
for fname in keys(json)
298+
if type(json[fname]) == type([])
299+
for e in json[fname]
300+
try
301+
cal add(out, fname . ':' .
302+
\ e['severity'][0] . ':' .
303+
\ e['line'] . ':' .
304+
\ e['column'] . ':' .
305+
\ e['length'] . ':' .
306+
\ ( has_key(e, 'linter') ? e['linter'] . ': ' : '' ) .
307+
\ e['reason'])
308+
catch /\m^Vim\%((\a\+)\)\=:E716/
309+
call syntastic#log#warn('checker scss/scss_lint: unrecognized error item ' . string(e))
310+
let out = []
311+
endtry
312+
endfor
313+
else
314+
call syntastic#log#warn('checker scss/scss_lint: unrecognized error format')
315+
endif
316+
endfor
317+
else
318+
call syntastic#log#warn('checker scss/scss_lint: unrecognized error format')
319+
endif
320+
return out
321+
endfunction " }}}2
322+
287323
function! syntastic#preprocess#stylelint(errors) abort " {{{2
288324
let out = []
289325

sources_non_forked/syntastic/autoload/syntastic/util.vim

+26-15
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ endfunction " }}}2
5151
function! syntastic#util#tmpdir() abort " {{{2
5252
let tempdir = ''
5353

54-
if (has('unix') || has('mac')) && executable('mktemp')
54+
if (has('unix') || has('mac')) && executable('mktemp') && !has('win32unix')
5555
" TODO: option "-t" to mktemp(1) is not portable
5656
let tmp = $TMPDIR !=# '' ? $TMPDIR : $TMP !=# '' ? $TMP : '/tmp'
5757
let out = split(syntastic#util#system('mktemp -q -d ' . tmp . '/vim-syntastic-' . getpid() . '-XXXXXXXX'), "\n")
@@ -90,18 +90,7 @@ function! syntastic#util#rmrf(what) abort " {{{2
9090
endif
9191

9292
if getftype(a:what) ==# 'dir'
93-
if !exists('s:rmrf')
94-
let s:rmrf =
95-
\ has('unix') || has('mac') ? 'rm -rf' :
96-
\ has('win32') || has('win64') ? 'rmdir /S /Q' :
97-
\ has('win16') || has('win95') || has('dos16') || has('dos32') ? 'deltree /Y' : ''
98-
endif
99-
100-
if s:rmrf !=# ''
101-
silent! call syntastic#util#system(s:rmrf . ' ' . syntastic#util#shescape(a:what))
102-
else
103-
call s:_rmrf(a:what)
104-
endif
93+
call s:_delete(a:what, 'rf')
10594
else
10695
silent! call delete(a:what)
10796
endif
@@ -274,8 +263,9 @@ function! syntastic#util#unique(list) abort " {{{2
274263
let seen = {}
275264
let uniques = []
276265
for e in a:list
277-
if !has_key(seen, e)
278-
let seen[e] = 1
266+
let k = string(e)
267+
if !has_key(seen, k)
268+
let seen[k] = 1
279269
call add(uniques, e)
280270
endif
281271
endfor
@@ -478,6 +468,27 @@ function! s:_translateElement(key, term) abort " {{{2
478468
return ret
479469
endfunction " }}}2
480470

471+
" @vimlint(EVL103, 1, a:flags)
472+
function! s:_delete_dumb(what, flags) abort " {{{2
473+
if !exists('s:rmrf')
474+
let s:rmrf =
475+
\ has('unix') || has('mac') ? 'rm -rf' :
476+
\ has('win32') || has('win64') ? 'rmdir /S /Q' :
477+
\ has('win16') || has('win95') || has('dos16') || has('dos32') ? 'deltree /Y' : ''
478+
endif
479+
480+
if s:rmrf !=# ''
481+
silent! call syntastic#util#system(s:rmrf . ' ' . syntastic#util#shescape(a:what))
482+
else
483+
call s:_rmrf(a:what)
484+
endif
485+
endfunction " }}}2
486+
" @vimlint(EVL103, 0, a:flags)
487+
488+
" delete(dir, 'rf') was added in Vim 7.4.1107, but it didn't become usable until 7.4.1128
489+
let s:_delete = function(v:version > 704 || (v:version == 704 && has('patch1128')) ? 'delete' : 's:_delete_dumb')
490+
lockvar s:_delete
491+
481492
function! s:_rmrf(what) abort " {{{2
482493
if !exists('s:rmdir')
483494
let s:rmdir = syntastic#util#shescape(get(g:, 'netrw_localrmdir', 'rmdir'))

sources_non_forked/syntastic/doc/syntastic.txt

+29-4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ CONTENTS *syntastic-contents*
3636
5.2.Choosing the executable................|syntastic-config-exec|
3737
5.3.Configuring specific checkers..........|syntastic-config-makeprg|
3838
5.4.Sorting errors.........................|syntastic-config-sort|
39+
5.5.Debugging..............................|syntastic-config-debug|
3940
6.Notes........................................|syntastic-notes|
4041
6.1.Handling of composite filetypes........|syntastic-composite|
4142
6.2.Editing files over network.............|syntastic-netrw|
@@ -158,6 +159,11 @@ Something like this could be more useful: >
158159
When syntax errors are detected a flag will be shown. The content of the flag
159160
is derived from the |syntastic_stl_format| option.
160161

162+
Please note that these settings might conflict with other Vim plugins that
163+
change the way statusline works. Refer to these plugins' documentation for
164+
possible solutions. See also |syntastic-powerline| below if you're using the
165+
"powerline" Vim plugin (https://github.com/powerline/powerline).
166+
161167
------------------------------------------------------------------------------
162168
2.2. Error signs *syntastic-error-signs*
163169

@@ -541,10 +547,10 @@ overriding filters, cf. |filter-overrides|).
541547

542548
"level" - takes one of two values, "warnings" or "errors"
543549
"type" - can be either "syntax" or "style"
544-
"regex" - is matched against the messages' text as a case-insensitive
545-
|regular-expression|
546-
"file" - is matched against the filenames the messages refer to, as a
547-
case-sensitive |regular-expression|.
550+
"regex" - each item in list is matched against the messages' text as a
551+
case-insensitive |regular-expression|
552+
"file" - each item in list is matched against the filenames the messages
553+
refer to, as a case-sensitive |regular-expression|.
548554

549555
If a key is prefixed by an exclamation mark "!", the corresponding filter is
550556
negated (i.e. the above example silences all messages that are NOT errors).
@@ -814,6 +820,25 @@ defined.
814820
For aggregated lists (see |syntastic-aggregating-errors|) these variables are
815821
ignored if |'syntastic_sort_aggregated_errors'| is set (which is the default).
816822

823+
------------------------------------------------------------------------------
824+
5.5 Debugging *syntastic-config-debug*
825+
826+
Syntastic can log a trace of its working to Vim's |message-history|. To verify
827+
the command line constructed by syntastic to run a checker, set the variable
828+
|'syntastic_debug'| to a non-zero value, run the checker, then run |:mes| to
829+
display the messages, and look for "makeprg" in the output.
830+
831+
From a user's perspective, the useful values for |'syntastic_debug'| are 1, 3,
832+
and 33:
833+
834+
1 - logs syntastic's workflow
835+
3 - logs workflow, checker's output, and |location-list| manipulations
836+
33 - logs workflow and checker-specific details (such as version checks).
837+
838+
Debug logs can be saved to a file; see |'syntastic_debug_file'| for details.
839+
840+
Setting |'syntastic_debug'| to 0 turns off logging.
841+
817842
==============================================================================
818843
6. Notes *syntastic-notes*
819844

sources_non_forked/syntastic/plugin/syntastic.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if has('reltime')
1919
lockvar! g:_SYNTASTIC_START
2020
endif
2121

22-
let g:_SYNTASTIC_VERSION = '3.7.0-69'
22+
let g:_SYNTASTIC_VERSION = '3.7.0-86'
2323
lockvar g:_SYNTASTIC_VERSION
2424

2525
" Sanity checks {{{1

sources_non_forked/syntastic/plugin/syntastic/registry.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let s:_DEFAULT_CHECKERS = {
4040
\ 'go': ['go'],
4141
\ 'haml': ['haml'],
4242
\ 'handlebars': ['handlebars'],
43-
\ 'haskell': ['ghc_mod', 'hdevtools', 'hlint'],
43+
\ 'haskell': ['hdevtools', 'hlint'],
4444
\ 'haxe': ['haxe'],
4545
\ 'hss': ['hss'],
4646
\ 'html': ['tidy'],

sources_non_forked/syntastic/syntax_checkers/asciidoc/asciidoc.vim

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ function! SyntaxCheckers_asciidoc_asciidoc_GetLocList() dict
2222
let makeprg = self.makeprgBuild({ 'args_after': syntastic#c#NullOutput() })
2323

2424
let errorformat =
25-
\ '%Easciidoc: %tRROR: %f: line %l: %m,' .
26-
\ '%Easciidoc: %tRROR: %f: %m,' .
27-
\ '%Easciidoc: FAILED: %f: line %l: %m,' .
28-
\ '%Easciidoc: FAILED: %f: %m,' .
29-
\ '%Wasciidoc: %tARNING: %f: line %l: %m,' .
30-
\ '%Wasciidoc: %tARNING: %f: %m,' .
31-
\ '%Wasciidoc: DEPRECATED: %f: line %l: %m,' .
32-
\ '%Wasciidoc: DEPRECATED: %f: %m'
25+
\ '%E%\w%\+: %tRROR: %f: line %l: %m,' .
26+
\ '%E%\w%\+: %tRROR: %f: %m,' .
27+
\ '%E%\w%\+: FAILED: %f: line %l: %m,' .
28+
\ '%E%\w%\+: FAILED: %f: %m,' .
29+
\ '%W%\w%\+: %tARNING: %f: line %l: %m,' .
30+
\ '%W%\w%\+: %tARNING: %f: %m,' .
31+
\ '%W%\w%\+: DEPRECATED: %f: line %l: %m,' .
32+
\ '%W%\w%\+: DEPRECATED: %f: %m'
3333

3434
return SyntasticMake({
3535
\ 'makeprg': makeprg,

sources_non_forked/syntastic/syntax_checkers/css/stylelint.vim

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ let g:loaded_syntastic_css_stylelint_checker = 1
1919
let s:save_cpo = &cpo
2020
set cpo&vim
2121

22+
let s:args_after = {
23+
\ 'css': '-f json',
24+
\ 'scss': '-f json -s scss' }
25+
2226
function! SyntaxCheckers_css_stylelint_GetLocList() dict
23-
let makeprg = self.makeprgBuild({ 'args_after': '-f json' })
27+
let makeprg = self.makeprgBuild({ 'args_after': get(s:args_after, self.getFiletype(), '') })
2428

2529
let errorformat = '%t:%f:%l:%c:%m'
2630

sources_non_forked/syntastic/syntax_checkers/javascript/flow.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function! SyntaxCheckers_javascript_flow_GetLocList() dict
3434
endif
3535

3636
let makeprg = self.makeprgBuild({
37-
\ 'exe': self.getExecEscaped() . ' status',
37+
\ 'exe': self.getExecEscaped() . ' check',
3838
\ 'args_after': '--show-all-errors --json' })
3939

4040
let errorformat =

sources_non_forked/syntastic/syntax_checkers/javascript/jscs.vim

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ function! SyntaxCheckers_javascript_jscs_IsAvailable() dict
2929
endfunction
3030

3131
function! SyntaxCheckers_javascript_jscs_GetLocList() dict
32-
let makeprg = self.makeprgBuild({ 'args_after': '--no-colors --reporter json' })
32+
let makeprg = self.makeprgBuild({
33+
\ 'args_after': '--no-colors --max-errors -1 --reporter json' })
3334

3435
let errorformat = '%f:%l:%c:%m'
3536

sources_non_forked/syntastic/syntax_checkers/markdown/mdl.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function! SyntaxCheckers_markdown_mdl_GetLocList() dict
2626
let makeprg = self.makeprgBuild({ 'args': '--warnings' })
2727

2828
let errorformat =
29-
\ '%E%f:%l: %m,'.
29+
\ '%E%f:%\s%\=%l: %m,'.
3030
\ '%W%f: Kramdown Warning: %m found on line %l'
3131

3232
return SyntasticMake({

sources_non_forked/syntastic/syntax_checkers/rst/rst2pseudoxml.vim

+5-7
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,20 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict
2929
\ 'tail': syntastic#util#DevNull() })
3030

3131
let errorformat =
32-
\ '%f:%l: (%tNFO/1) %m,'.
33-
\ '%f:%l: (%tARNING/2) %m,'.
34-
\ '%f:%l: (%tRROR/3) %m,'.
35-
\ '%f:%l: (%tEVERE/4) %m,'.
32+
\ '%f:%l: (%t%\w%\+/%\d%\+) %m,'.
33+
\ '%f:: (%t%\w%\+/%\d%\+) %m,'.
3634
\ '%-G%.%#'
3735

3836
let loclist = SyntasticMake({
3937
\ 'makeprg': makeprg,
4038
\ 'errorformat': errorformat })
4139

4240
for e in loclist
43-
if e['type'] ==? 'S'
44-
let e['type'] = 'E'
45-
elseif e['type'] ==? 'I'
41+
if e['type'] ==? 'I'
4642
let e['type'] = 'W'
4743
let e['subtype'] = 'Style'
44+
else
45+
let e['type'] = 'E'
4846
endif
4947
endfor
5048

sources_non_forked/syntastic/syntax_checkers/scss/scss_lint.vim

+10-3
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,28 @@ function! SyntaxCheckers_scss_scss_lint_IsAvailable() dict
2121
if !executable(self.getExec())
2222
return 0
2323
endif
24-
return syntastic#util#versionIsAtLeast(self.getVersion(), [0, 12])
24+
return syntastic#util#versionIsAtLeast(self.getVersion(), [0, 29])
2525
endfunction
2626

2727
function! SyntaxCheckers_scss_scss_lint_GetLocList() dict
28-
let makeprg = self.makeprgBuild({})
28+
let makeprg = self.makeprgBuild({ 'args_after': '-f JSON' })
2929

30-
let errorformat = '%f:%l [%t] %m'
30+
let errorformat = '%f:%t:%l:%c:%n:%m'
3131

3232
let loclist = SyntasticMake({
3333
\ 'makeprg': makeprg,
3434
\ 'errorformat': errorformat,
35+
\ 'preprocess': 'scss_lint',
36+
\ 'postprocess': ['guards'],
3537
\ 'returns': [0, 1, 2, 65, 66] })
3638

3739
let cutoff = strlen('Syntax Error: ')
3840
for e in loclist
41+
if e['nr'] > 1
42+
let e['hl'] = '\%>' . (e['col'] - 1) . 'c\%<' . (e['col'] + e['nr']) . 'c'
43+
endif
44+
let e['nr'] = 0
45+
3946
if e['text'][: cutoff-1] ==# 'Syntax Error: '
4047
let e['text'] = e['text'][cutoff :]
4148
else
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
language: ruby
2+
before_install:
3+
- curl -f -L "https://raw.githubusercontent.com/vim-airline/vim-airline-themes/master/autoload/airline/themes/simple.vim" -o autoload/airline/themes/simple.vim
4+
- curl -f -L "https://raw.githubusercontent.com/vim-airline/vim-airline-themes/master/autoload/airline/themes/molokai.vim" -o autoload/airline/themes/molokai.vim
5+
- mkdir colors && curl -f -L 'https://raw.githubusercontent.com/tomasr/molokai/master/colors/molokai.vim' -o colors/molokai.vim
26
rvm:
37
- 1.9.3
48
script: rake ci

sources_non_forked/vim-airline/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (C) 2013-2015 Bailey Ling
3+
Copyright (C) 2013-2016 Bailey Ling
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the "Software"),

0 commit comments

Comments
 (0)