mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 12:14:26 +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
|
||||
autocmd!
|
||||
autocmd User Fugitive
|
||||
\ if &filetype ==# 'gitcommit' && expand('%:t') ==# 'COMMIT_EDITMSG' &&
|
||||
\ if expand('%:p') =~# '\.git[\/].*MSG$' &&
|
||||
\ exists('+omnifunc') &&
|
||||
\ &omnifunc =~# '^\%(syntaxcomplete#Complete\)\=$' &&
|
||||
\ join(readfile(fugitive#buffer().repo().dir('config')),"\n")
|
||||
|
||||
Reference in New Issue
Block a user