Skip to content

Commit 5f6aa8f

Browse files
author
amix
committed
Updated plugins
1 parent ad875b0 commit 5f6aa8f

File tree

54 files changed

+1240
-295
lines changed

Some content is hidden

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

54 files changed

+1240
-295
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
==== ack.vim quick help ===============
22

3-
*?:* Show/quit this help
4-
*t:* Open in a new tab
5-
*T:* Open in a new tab silently
6-
*o:* Open
7-
*O:* Open and close result window
8-
*go:* Preview
9-
*h:* Horizontal open
10-
*H:* Horizontal open silently
11-
*v:* Vertical open
12-
*gv:* Vertical open silently
3+
*?:* a quick summary of these keys, repeat to close
4+
*o:* to open (same as Enter)
5+
*O:* to open and close the quickfix window
6+
*go:* to preview file, open but maintain focus on ack.vim results
7+
*t:* to open in new tab
8+
*T:* to open in new tab without moving to it
9+
*h:* to open in horizontal split
10+
*H:* to open in horizontal split, keeping focus on the results
11+
*v:* to open in vertical split
12+
*gv:* to open in vertical split, keeping focus on the results
13+
*q:* to close the quickfix window
1314

1415
========================================

sources_non_forked/goyo.vim/autoload/goyo.vim

+5
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ function! s:maps_resize()
161161
return mapped
162162
endfunction
163163

164+
nnoremap <silent> <plug>(goyo-resize) :<c-u>call <sid>resize_pads()<cr>
165+
164166
function! s:goyo_on(dim)
165167
let dim = s:parse_arg(a:dim)
166168
if empty(dim)
@@ -263,6 +265,9 @@ function! s:goyo_on(dim)
263265
autocmd ColorScheme * call s:tranquilize()
264266
autocmd BufWinEnter * call s:hide_linenr() | call s:hide_statusline()
265267
autocmd WinEnter,WinLeave * call s:hide_statusline()
268+
if has('nvim')
269+
autocmd TermClose * call feedkeys("\<plug>(goyo-resize)")
270+
endif
266271
augroup END
267272

268273
call s:hide_statusline()

sources_non_forked/syntastic/README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ let g:syntastic_check_on_wq = 0
190190
__4.1. Q. I installed syntastic but it isn't reporting any errors...__
191191

192192
A. The most likely reason is that none of the syntax checkers that it requires
193-
is installed. For example: by default, python requires either `flake8` or
193+
are installed. For example: by default, python requires either `flake8` or
194194
`pylint` to be installed and in your `$PATH`. To see which executables are
195195
supported, look at the [wiki][3]. Note that aliases do not work; the actual
196196
executables must be available in your `$PATH`. Symbolic links are okay though.

sources_non_forked/syntastic/autoload/syntastic/preprocess.vim

+4-4
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ function! syntastic#preprocess#prospector(errors) abort " {{{2
227227

228228
call add(out, msg)
229229
catch /\m^Vim\%((\a\+)\)\=:E716/
230-
call syntastic#log#warn('checker python/prospector: unrecognized error format')
230+
call syntastic#log#warn('checker python/prospector: unrecognized error item ' . string(e))
231231
let out = []
232232
break
233233
endtry
234234
else
235-
call syntastic#log#warn('checker python/prospector: unrecognized error format')
235+
call syntastic#log#warn('checker python/prospector: unrecognized error item ' . string(e))
236236
let out = []
237237
break
238238
endif
@@ -394,12 +394,12 @@ function! syntastic#preprocess#vint(errors) abort " {{{2
394394

395395
call add(out, msg)
396396
catch /\m^Vim\%((\a\+)\)\=:E716/
397-
call syntastic#log#warn('checker vim/vint: unrecognized error format')
397+
call syntastic#log#warn('checker vim/vint: unrecognized error item ' . string(e))
398398
let out = []
399399
break
400400
endtry
401401
else
402-
call syntastic#log#warn('checker vim/vint: unrecognized error format')
402+
call syntastic#log#warn('checker vim/vint: unrecognized error item ' . string(e))
403403
let out = []
404404
break
405405
endif

sources_non_forked/syntastic/autoload/syntastic/util.vim

+6
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,12 @@ function! syntastic#util#stamp() abort " {{{2
334334
return split( split(reltimestr(reltime(g:_SYNTASTIC_START)))[0], '\.' )
335335
endfunction " }}}2
336336

337+
function! syntastic#util#setChangedtick() abort " {{{2
338+
unlockvar! b:syntastic_changedtick
339+
let b:syntastic_changedtick = b:changedtick
340+
lockvar! b:syntastic_changedtick
341+
endfunction " }}}2
342+
337343
let s:_wid_base = 'syntastic_' . getpid() . '_' . reltimestr(g:_SYNTASTIC_START) . '_'
338344
let s:_wid_pool = 0
339345

sources_non_forked/syntastic/plugin/syntastic.vim

+10-9
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-106'
22+
let g:_SYNTASTIC_VERSION = '3.7.0-112'
2323
lockvar g:_SYNTASTIC_VERSION
2424

2525
" Sanity checks {{{1
@@ -94,7 +94,7 @@ let g:_SYNTASTIC_DEFAULTS = {
9494
\ 'loc_list_height': 10,
9595
\ 'nested_autocommands': 0,
9696
\ 'quiet_messages': {},
97-
\ 'reuse_loc_lists': 0,
97+
\ 'reuse_loc_lists': 1,
9898
\ 'shell': &shell,
9999
\ 'sort_aggregated_errors': 1,
100100
\ 'stl_format': '[Syntax: line:%F (%t)]',
@@ -292,7 +292,7 @@ function! s:BufEnterHook() abort " {{{2
292292
let loclist = filter(copy(getloclist(0)), 'v:val["valid"] == 1')
293293
let owner = str2nr(getbufvar(bufnr(''), 'syntastic_owner_buffer'))
294294
let buffers = syntastic#util#unique(map(loclist, 'v:val["bufnr"]') + (owner ? [owner] : []))
295-
if get(w:, 'syntastic_loclist_set', 0) && !empty(loclist) && empty(filter( buffers, 'syntastic#util#bufIsActive(v:val)' ))
295+
if !empty(get(w:, 'syntastic_loclist_set', [])) && !empty(loclist) && empty(filter( buffers, 'syntastic#util#bufIsActive(v:val)' ))
296296
call SyntasticLoclistHide()
297297
endif
298298
endif
@@ -307,7 +307,7 @@ function! s:QuitPreHook(fname) abort " {{{2
307307
call add(s:_quit_pre, buf . '_' . getbufvar(buf, 'changetick') . '_' . w:syntastic_wid)
308308
endif
309309

310-
if get(w:, 'syntastic_loclist_set', 0)
310+
if !empty(get(w:, 'syntastic_loclist_set', []))
311311
call SyntasticLoclistHide()
312312
endif
313313
endfunction " }}}2
@@ -333,9 +333,7 @@ function! s:UpdateErrors(auto_invoked, checker_names) abort " {{{2
333333
let run_checks = !a:auto_invoked || s:modemap.doAutoChecking()
334334
if run_checks
335335
call s:CacheErrors(a:checker_names)
336-
unlockvar! b:syntastic_changedtick
337-
let b:syntastic_changedtick = b:changedtick
338-
lockvar! b:syntastic_changedtick
336+
call syntastic#util#setChangedtick()
339337
else
340338
if a:auto_invoked
341339
return
@@ -358,11 +356,14 @@ function! s:UpdateErrors(auto_invoked, checker_names) abort " {{{2
358356
let do_jump = 0
359357
endif
360358

361-
let w:syntastic_loclist_set = 0
359+
let w:syntastic_loclist_set = []
362360
if syntastic#util#var('always_populate_loc_list') || do_jump
363361
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'loclist: setloclist (new)')
364362
call setloclist(0, loclist.getRaw())
365-
let w:syntastic_loclist_set = 1
363+
if !exists('b:syntastic_changedtick')
364+
call syntastic#util#setChangedtick()
365+
endif
366+
let w:syntastic_loclist_set = [bufnr(''), b:syntastic_changedtick]
366367
if run_checks && do_jump && !loclist.isEmpty()
367368
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'loclist: jump')
368369
execute 'silent! lrewind ' . do_jump

sources_non_forked/syntastic/plugin/syntastic/loclist.vim

+8-5
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,15 @@ endfunction " }}}2
291291

292292
function! g:SyntasticLoclist.setloclist() abort " {{{2
293293
if !exists('w:syntastic_loclist_set')
294-
let w:syntastic_loclist_set = 0
294+
let w:syntastic_loclist_set = []
295+
endif
296+
if empty(w:syntastic_loclist_set) || w:syntastic_loclist_set != [bufnr(''), b:changedtick]
297+
let replace = g:syntastic_reuse_loc_lists && !empty(w:syntastic_loclist_set)
298+
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'loclist: setloclist ' . (replace ? '(replace)' : '(new)'))
299+
call setloclist(0, self.getRaw(), replace ? 'r' : ' ')
300+
call syntastic#util#setChangedtick()
301+
let w:syntastic_loclist_set = [bufnr(''), b:syntastic_changedtick]
295302
endif
296-
let replace = g:syntastic_reuse_loc_lists && w:syntastic_loclist_set
297-
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'loclist: setloclist ' . (replace ? '(replace)' : '(new)'))
298-
call setloclist(0, self.getRaw(), replace ? 'r' : ' ')
299-
let w:syntastic_loclist_set = 1
300303
endfunction " }}}2
301304

302305
"display the cached errors for this buf in the location list

sources_non_forked/syntastic/syntax_checkers/d/dmd.vim

+79-7
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,28 @@ if !exists('g:syntastic_d_compiler_options')
2424
let g:syntastic_d_compiler_options = ''
2525
endif
2626

27+
if !exists('g:syntastic_d_use_dub')
28+
let g:syntastic_d_use_dub = 1
29+
endif
30+
31+
if !exists('g:syntastic_d_dub_exec')
32+
let g:syntastic_d_dub_exec = 'dub'
33+
endif
34+
2735
let s:save_cpo = &cpo
2836
set cpo&vim
2937

30-
function! SyntaxCheckers_d_dmd_IsAvailable() dict
38+
function! SyntaxCheckers_d_dmd_IsAvailable() dict " {{{1
3139
if !exists('g:syntastic_d_compiler')
3240
let g:syntastic_d_compiler = self.getExec()
3341
endif
3442
call self.log('g:syntastic_d_compiler =', g:syntastic_d_compiler)
3543
return executable(expand(g:syntastic_d_compiler, 1))
36-
endfunction
44+
endfunction " }}}1
3745

38-
function! SyntaxCheckers_d_dmd_GetLocList() dict
46+
function! SyntaxCheckers_d_dmd_GetLocList() dict " {{{1
3947
if !exists('g:syntastic_d_include_dirs')
40-
let g:syntastic_d_include_dirs = filter(glob($HOME . '/.dub/packages/*', 1, 1), 'isdirectory(v:val)')
41-
call map(g:syntastic_d_include_dirs, 'isdirectory(v:val . "/source") ? v:val . "/source" : v:val')
42-
call add(g:syntastic_d_include_dirs, './source')
48+
let g:syntastic_d_include_dirs = s:GetIncludes(self, expand('%:p:h'))
4349
endif
4450

4551
return syntastic#c#GetLocList('d', 'dmd', {
@@ -48,7 +54,73 @@ function! SyntaxCheckers_d_dmd_GetLocList() dict
4854
\ '%f:%l: %m',
4955
\ 'main_flags': '-c -of' . syntastic#util#DevNull(),
5056
\ 'header_names': '\m\.di$' })
51-
endfunction
57+
endfunction " }}}1
58+
59+
" Utilities {{{1
60+
61+
function! s:GetIncludes(checker, base) " {{{2
62+
let includes = []
63+
64+
if g:syntastic_d_use_dub && !exists('s:dub_ok')
65+
let s:dub_ok = s:ValidateDub(a:checker)
66+
endif
67+
68+
if g:syntastic_d_use_dub && s:dub_ok
69+
let where = escape(a:base, ' ') . ';'
70+
71+
let old_suffixesadd = &suffixesadd
72+
let dirs = syntastic#util#unique(map(filter(
73+
\ findfile('dub.json', where, -1) +
74+
\ findfile('dub.sdl', where, -1) +
75+
\ findfile('package.json', where, -1),
76+
\ 'filereadable(v:val)'), 'fnamemodify(v:val, ":h")'))
77+
let &suffixesadd = old_suffixesadd
78+
call a:checker.log('using dub: looking for includes in', dirs)
79+
80+
for dir in dirs
81+
try
82+
execute 'silent lcd ' . fnameescape(dir)
83+
let paths = split(syntastic#util#system(syntastic#util#shescape(g:syntastic_d_dub_exec) . ' describe --import-paths'), "\n")
84+
silent lcd -
85+
if v:shell_error == 0
86+
call extend(includes, paths)
87+
call a:checker.log('using dub: found includes', paths)
88+
endif
89+
catch /\m^Vim\%((\a\+)\)\=:E472/
90+
" evil directory is evil
91+
endtry
92+
endfor
93+
endif
94+
95+
if empty(includes)
96+
let includes = filter(glob($HOME . '/.dub/packages/*', 1, 1), 'isdirectory(v:val)')
97+
call map(includes, 'isdirectory(v:val . "/source") ? v:val . "/source" : v:val')
98+
call add(includes, './source')
99+
endif
100+
101+
return syntastic#util#unique(includes)
102+
endfunction " }}}2
103+
104+
function! s:ValidateDub(checker) " {{{2
105+
let ok = 0
106+
107+
if executable(g:syntastic_d_dub_exec)
108+
let command = syntastic#util#shescape(g:syntastic_d_dub_exec) . ' --version'
109+
let version_output = syntastic#util#system(command)
110+
call a:checker.log('getVersion: ' . string(command) . ': ' .
111+
\ string(split(version_output, "\n", 1)) .
112+
\ (v:shell_error ? ' (exit code ' . v:shell_error . ')' : '') )
113+
let parsed_ver = syntastic#util#parseVersion(version_output)
114+
call a:checker.log(g:syntastic_d_dub_exec . ' version =', parsed_ver)
115+
if len(parsed_ver)
116+
let ok = syntastic#util#versionIsAtLeast(parsed_ver, [0, 9, 24])
117+
endif
118+
endif
119+
120+
return ok
121+
endfunction " }}}2
122+
123+
" }}}1
52124

53125
call g:SyntasticRegistry.CreateAndRegisterChecker({
54126
\ 'filetype': 'd',

sources_non_forked/vim-airline-themes/autoload/airline/themes/jellybeans.vim

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ let s:gui0D = "#0d61ac"
1616
let s:gui0E = "#c594c5"
1717
let s:gui0F = "#ab7967"
1818

19-
let s:cterm00 = "234"
19+
let s:cterm00 = "233"
2020
let s:cterm01 = "235"
21-
let s:cterm02 = "239"
22-
let s:cterm03 = "59"
21+
let s:cterm02 = "59"
22+
let s:cterm03 = "66"
2323
let s:cterm04 = "145"
2424
let s:cterm05 = "152"
2525
let s:cterm06 = "188"
26-
let s:cterm07 = "15"
26+
let s:cterm07 = "189"
2727
let s:cterm08 = "88"
2828
let s:cterm09 = "209"
2929
let s:cterm0A = "221"
30-
let s:cterm0B = "28"
30+
let s:cterm0B = "64"
3131
let s:cterm0C = "73"
32-
let s:cterm0D = "04"
32+
let s:cterm0D = "25"
3333
let s:cterm0E = "176"
3434
let s:cterm0F = "137"
3535

3636
let s:guiWhite = "#ffffff"
37-
let s:ctermWhite = "15"
37+
let s:ctermWhite = "231"
3838

3939
let g:airline#themes#jellybeans#palette = {}
4040

sources_non_forked/vim-airline-themes/autoload/airline/themes/wombat.vim

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
" Normal mode
55
" [ guifg, guibg, ctermfg, ctermbg, opts ]
66
let s:N1 = [ '#141413' , '#CAE682' , 232 , 192 ] " mode
7-
let s:N2 = [ '#CAE682' , '#32322F' , 192 , 236 ] " info
8-
let s:N3 = [ '#CAE682' , '#242424' , 192 , 234 ] " statusline
7+
let s:N2 = [ '#CAE682' , '#32322F' , 192 , 238 ] " info
8+
let s:N3 = [ '#CAE682' , '#242424' , 192 , 235 ] " statusline
99
let s:N4 = [ '#86CD74' , 113 ] " mode modified
1010

1111
" Insert mode
1212
let s:I1 = [ '#141413' , '#FDE76E' , 232 , 227 ]
13-
let s:I2 = [ '#FDE76E' , '#32322F' , 227 , 236 ]
14-
let s:I3 = [ '#FDE76E' , '#242424' , 227 , 234 ]
13+
let s:I2 = [ '#FDE76E' , '#32322F' , 227 , 238 ]
14+
let s:I3 = [ '#FDE76E' , '#242424' , 227 , 235 ]
1515
let s:I4 = [ '#FADE3E' , 221 ]
1616

1717
" Visual mode
1818
let s:V1 = [ '#141413' , '#B5D3F3' , 232 , 153 ]
19-
let s:V2 = [ '#B5D3F3' , '#32322F' , 153 , 236 ]
20-
let s:V3 = [ '#B5D3F3' , '#242424' , 153 , 234 ]
19+
let s:V2 = [ '#B5D3F3' , '#32322F' , 153 , 238 ]
20+
let s:V3 = [ '#B5D3F3' , '#242424' , 153 , 235 ]
2121
let s:V4 = [ '#7CB0E6' , 111 ]
2222

2323
" Replace mode
2424
let s:R1 = [ '#141413' , '#E5786D' , 232 , 173 ]
25-
let s:R2 = [ '#E5786D' , '#32322F' , 173 , 236 ]
26-
let s:R3 = [ '#E5786D' , '#242424' , 173 , 234 ]
25+
let s:R2 = [ '#E5786D' , '#32322F' , 173 , 238 ]
26+
let s:R3 = [ '#E5786D' , '#242424' , 173 , 235 ]
2727
let s:R4 = [ '#E55345' , 203 ]
2828

2929
" Paste mode

sources_non_forked/vim-airline/autoload/airline/extensions/tabline/tabs.vim

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ function! airline#extensions#tabline#tabs#get()
4545

4646
for i in range(1, tabpagenr('$'))
4747
if i == curtab
48-
let group = 'airline_tabsel_right'
48+
let group = 'airline_tabsel'
4949
if g:airline_detect_modified
5050
for bi in tabpagebuflist(i)
5151
if getbufvar(bi, '&modified')
52-
let group = 'airline_tabmod_right'
52+
let group = 'airline_tabmod'
5353
endif
5454
endfor
5555
endif
56-
let s:current_modified = (group == 'airline_tabmod_right') ? 1 : 0
56+
let s:current_modified = (group == 'airline_tabmod') ? 1 : 0
5757
else
58-
let group = 'airline_tab_right'
58+
let group = 'airline_tab'
5959
endif
6060
let val = '%('
6161
if s:show_tab_nr
@@ -81,7 +81,7 @@ function! airline#extensions#tabline#tabs#get()
8181
if s:show_splits == 1
8282
let buffers = tabpagebuflist(curtab)
8383
for nr in buffers
84-
let group = airline#extensions#tabline#group_of_bufnr(buffers, nr)
84+
let group = airline#extensions#tabline#group_of_bufnr(buffers, nr) . "_right"
8585
call b.add_section_spaced(group, '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)')
8686
endfor
8787
elseif s:show_tab_type == 1

sources_non_forked/vim-airline/autoload/airline/extensions/whitespace.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let s:max_lines = get(g:, 'airline#extensions#whitespace#max_lines', 20000)
1818

1919
let s:enabled = get(g:, 'airline#extensions#whitespace#enabled', 1)
2020

21-
let s:c_like_langs = ['c', 'cpp', 'javascript', 'ld']
21+
let s:c_like_langs = ['c', 'cpp', 'cuda', 'java', 'javascript', 'ld']
2222

2323
function! s:check_mixed_indent()
2424
if s:indent_algo == 1

0 commit comments

Comments
 (0)