mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 12:14:26 +08:00
Broaden commit message editing recognition
This commit is contained in:
@@ -101,7 +101,7 @@ endfunction
|
||||
augroup rhubarb
|
||||
autocmd!
|
||||
autocmd User Fugitive
|
||||
\ if fugitive#buffer().path() =~# '^\.git.COMMIT_EDITMSG$' &&
|
||||
\ if &filetype ==# 'gitcommit' && expand('%:t') ==# 'COMMIT_EDITMSG' &&
|
||||
\ exists('+omnifunc') &&
|
||||
\ &omnifunc =~# '^\%(syntaxcomplete#Complete\)\=$' &&
|
||||
\ join(readfile(fugitive#buffer().repo().dir('config')),"\n")
|
||||
|
||||
Reference in New Issue
Block a user