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>"