mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 20:24:29 +08:00
Update omnicomplete autocmd checks
- drops file type constraint - update file name checks to match COMMIT_EDITMSG, PULLREQ_EDITMSG, MERGE_MSG, SQUASH_MSG and TAG_EDITMSG Closes #5
This commit is contained in:
@@ -163,7 +163,7 @@ endfunction
|
|||||||
augroup rhubarb
|
augroup rhubarb
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd User Fugitive
|
autocmd User Fugitive
|
||||||
\ if &filetype ==# 'gitcommit' && expand('%:t') ==# 'COMMIT_EDITMSG' &&
|
\ if expand('%:p') =~# '\.git[\/].*MSG$' &&
|
||||||
\ 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