From 4cbe16197cbcdc3752aad6e596c6f910b8cff63c Mon Sep 17 00:00:00 2001 From: Zander Lee Date: Sun, 22 Dec 2019 09:35:29 +0100 Subject: [PATCH] Allow popup to be used instead of preview in completeopt --- autoload/ale/completion.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index da24e839..d18de59d 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -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