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