Merge pull request #2942 from PsiPhire/master

Allow popup to be used instead of preview in completeopt
This commit is contained in:
w0rp 2020-01-01 18:43:53 +00:00 committed by GitHub
commit 7a4f5cefba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,6 +261,8 @@ function! s:ReplaceCompletionOptions() abort
if &l:completeopt =~# 'preview'
let &l:completeopt = 'menu,menuone,preview,noselect,noinsert'
elseif &l:completeopt =~# 'popup'
let &l:completeopt = 'menu,menuone,popup,noselect,noinsert'
else
let &l:completeopt = 'menu,menuone,noselect,noinsert'
endif