Merge pull request #2942 from PsiPhire/master
Allow popup to be used instead of preview in completeopt
This commit is contained in:
commit
7a4f5cefba
1 changed files with 2 additions and 0 deletions
|
@ -261,6 +261,8 @@ function! s:ReplaceCompletionOptions() abort
|
||||||
|
|
||||||
if &l:completeopt =~# 'preview'
|
if &l:completeopt =~# 'preview'
|
||||||
let &l:completeopt = 'menu,menuone,preview,noselect,noinsert'
|
let &l:completeopt = 'menu,menuone,preview,noselect,noinsert'
|
||||||
|
elseif &l:completeopt =~# 'popup'
|
||||||
|
let &l:completeopt = 'menu,menuone,popup,noselect,noinsert'
|
||||||
else
|
else
|
||||||
let &l:completeopt = 'menu,menuone,noselect,noinsert'
|
let &l:completeopt = 'menu,menuone,noselect,noinsert'
|
||||||
endif
|
endif
|
||||||
|
|
Reference in a new issue