autoload/lsp/completion.vim | 3 +-- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 3119db37212c70b8fdd5cc78f140f55f6fc5c24f..5a3797c3eff76cf52ed77ade524a7f3c7d70292d 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -657,11 +657,10 @@ # set options for insert mode completion if opt.lspOptions.autoComplete if lspserver.completionLazyDoc setbufvar(bnr, '&completeopt', 'menuone,popuphidden,noinsert,noselect') - setbufvar(bnr, '&completepopup', 'width:80,highlight:Pmenu,align:item,border:off') else setbufvar(bnr, '&completeopt', 'menuone,popup,noinsert,noselect') - setbufvar(bnr, '&completepopup', 'border:off') endif + setbufvar(bnr, '&completepopup', 'width:80,highlight:Pmenu,align:item,border:off') # in insert mode stops completion and inserts a if !opt.lspOptions.noNewlineInCompletion :inoremap pumvisible() ? "\\" : "\"