summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZander Lee <zander.lee16@gmail.com>2019-12-22 09:35:29 +0100
committerGitHub <noreply@github.com>2019-12-22 09:35:29 +0100
commit4cbe16197cbcdc3752aad6e596c6f910b8cff63c (patch)
treef06c875ed84ce6df51cb6a38d443fd8288e4e4d8
parent5f84325cd811ec179b7f3642652438c6a45b174d (diff)
downloadale-4cbe16197cbcdc3752aad6e596c6f910b8cff63c.zip
Allow popup to be used instead of preview in completeopt
-rw-r--r--autoload/ale/completion.vim2
1 files changed, 2 insertions, 0 deletions
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