autoload/lsp/completion.vim | 3 +-- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 643ea997e0241f3abd0f80a0858e24356f68bf3f..fffc3e69ddc8578b445236fcaabd8a2d54f356d6 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -604,11 +604,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() ? "\\" : "\"