mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 06:43:51 -05:00
Extract fugitiveblame ftplugin
References https://github.com/tpope/vim-fugitive/issues/1425
This commit is contained in:
@@ -5788,7 +5788,7 @@ function! s:BlameRehighlight() abort
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
function! s:BlameFileType() abort
|
||||
function! fugitive#BlameFileType() abort
|
||||
setlocal nomodeline
|
||||
setlocal foldmethod=manual
|
||||
if len(s:Dir())
|
||||
@@ -5821,7 +5821,6 @@ endfunction
|
||||
|
||||
augroup fugitive_blame
|
||||
autocmd!
|
||||
autocmd FileType fugitiveblame call s:BlameFileType()
|
||||
autocmd ColorScheme,GUIEnter * call s:BlameRehighlight()
|
||||
autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('<abuf>')), 'fugitive_leave')
|
||||
augroup END
|
||||
|
||||
Reference in New Issue
Block a user