]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Fix merge issue
authorGirish Palya <girishji@gmail.com>
Thu, 1 Jun 2023 09:18:20 +0000 (11:18 +0200)
committerGirish Palya <girishji@gmail.com>
Thu, 1 Jun 2023 09:18:20 +0000 (11:18 +0200)
M  autoload/lsp/completion.vim

autoload/lsp/completion.vim

index 3119db37212c70b8fdd5cc78f140f55f6fc5c24f..5a3797c3eff76cf52ed77ade524a7f3c7d70292d 100644 (file)
@@ -657,11 +657,10 @@ export def BufferInit(lspserver: dict<any>, bnr: number, ftype: string)
   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')
     # <Enter> in insert mode stops completion and inserts a <Enter>
     if !opt.lspOptions.noNewlineInCompletion
       :inoremap <expr> <buffer> <CR> pumvisible() ? "\<C-Y>\<CR>" : "\<CR>"