1
0
Fork 0
mirror of synced 2024-12-22 15:08:57 -05:00

Updated plugins

This commit is contained in:
amix 2019-12-01 20:18:45 +01:00
parent 010fe6869f
commit cf9b500ebc
2 changed files with 5 additions and 11 deletions

View file

@ -2429,12 +2429,6 @@ function! s:ExpireStatus(bufnr) abort
return '' return ''
endfunction endfunction
function! FugitiveReloadCheck() abort
let t = b:fugitive_reltime
return [t, reltimestr(reltime(s:last_time, t)),
\ reltimestr(reltime(get(s:last_times, s:cpath(s:Dir()), t), t))]
endfunction
function! s:ReloadWinStatus(...) abort function! s:ReloadWinStatus(...) abort
if get(b:, 'fugitive_type', '') !=# 'index' || &modified if get(b:, 'fugitive_type', '') !=# 'index' || &modified
return return
@ -2913,9 +2907,9 @@ function! s:PatchSearchExpr(reverse) abort
let pattern = '^[+-]\s*' . escape(substitute(strpart(line, 1), '^\s*\|\s*$', '', ''), '^$.*[]~\') . '\s*$' let pattern = '^[+-]\s*' . escape(substitute(strpart(line, 1), '^\s*\|\s*$', '', ''), '^$.*[]~\') . '\s*$'
endif endif
if a:reverse if a:reverse
return '?' . escape(pattern, '/') . "\<CR>" return '?' . escape(pattern, '/?') . "\<CR>"
else else
return '/' . escape(pattern, '/?') . "\<CR>" return '/' . escape(pattern, '/') . "\<CR>"
endif endif
endif endif
return a:reverse ? '#' : '*' return a:reverse ? '#' : '*'
@ -4821,7 +4815,7 @@ function! s:BlameCommitFileLnum(...) abort
let commit = get(s:LinesError('rev-list', '--ancestry-path', '--reverse', commit . '..' . state.blame_reverse_end)[0], 0, '') let commit = get(s:LinesError('rev-list', '--ancestry-path', '--reverse', commit . '..' . state.blame_reverse_end)[0], 0, '')
endif endif
let lnum = +matchstr(line, ' \zs\d\+\ze \%((\| *\d\+)\)') let lnum = +matchstr(line, ' \zs\d\+\ze \%((\| *\d\+)\)')
let path = matchstr(line, '^\^\=[?*]*\x* \+\%(\d\+ \+\d\+ \+\)\=\zs.\{-\}\ze\s\+\%(\%( \d\+ \)\@<!([^()]*\w \d\+)\|\d\+ \)') let path = matchstr(line, '^\^\=[?*]*\x* \+\%(\d\+ \+\d\+ \+\)\=\zs.\{-\}\ze\s*\d\+ \%((\| *\d\+)\)')
if empty(path) && lnum if empty(path) && lnum
let path = get(state, 'blame_file', '') let path = get(state, 'blame_file', '')
endif endif

View file

@ -307,7 +307,7 @@ end
endsnippet endsnippet
snippet class "class <class_name> def initialize ... end end" snippet class "class <class_name> def initialize ... end end"
class ${1:class_name} class ${1:`!p snip.rv = snip.basename.title().replace('_', '')`}
def initialize(${2:*args}) def initialize(${2:*args})
$0 $0
end end
@ -315,7 +315,7 @@ end
endsnippet endsnippet
snippet module "module" snippet module "module"
module ${1:module_name} module ${1:`!p snip.rv = snip.basename.title().replace('_', '')`}
$0 $0
end end
endsnippet endsnippet