prefer popup over preview window

This commit is contained in:
Konfekt
2022-11-10 15:55:13 +01:00
parent e82d07faa1
commit 8c7161f4e9
4 changed files with 20 additions and 7 deletions

View File

@@ -33,7 +33,12 @@ if get(g:, 'jedi#auto_vim_configuration', 1)
redir END
endif
if len(split(completeopt, '\n')) == 1
set completeopt=menuone,longest,preview
set completeopt=menuone,longest
if v:version > 801 || (v:version == 801 && has('patch-8.1.1882'))
set completeopt+=popup
else
set completeopt+=preview
endif
endif
endfunction
if has('nvim')