Allow popup to be used instead of preview in completeopt

This commit is contained in:
Zander Lee 2019-12-22 09:35:29 +01:00 committed by GitHub
parent 5f84325cd8
commit 4cbe16197c
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' 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