ErrMsg('Error: Unsupported hover contents (' .. reply.result.contents .. ')')
return
endif
- if g:LSP_Hover_In_Preview
+ if lspOptions.hoverInPreview
silent! pedit HoverReply
wincmd P
setlocal buftype=nofile
if !reply.result.contents.kind->empty()
exe 'setlocal ft=' .. reply.result.contents.kind
endif
- exe 'normal ggdG'
+ deletebufline(bufnr(), 1, getbufinfo(bufnr())[0].linecount)
append(0, hoverText)
- exe 'normal gg'
+ cursor(1, 1)
wincmd p
else
hoverText->popup_atcursor({moved: 'word'})
# instead of showing it in a popup
echoSignature: false,
# Automatically highlight diagnostics messages from LSP server
- autoHighlightDiags: true
+ autoHighlightDiags: true,
+ # Show the symbol documentation in the preview window instead of in a popup
+ hoverInPreview: false,
}
in a popup window. If you want to show the symbol
documentation in the preview window instead of in a
popup set >
- let g:LSP_Hover_In_preview variable = v:true
+
+ call lsp#setOptions({'hoverInPreview': v:true})
<
Default is false
finish
endif
-
-" Perform completion in insert mode automatically. Otherwise use
-" omni-complete.
-if !exists('g:LSP_24x7_Complete')
- let g:LSP_24x7_Complete = v:true
-endif
-
-if !exists('g:LSP_Show_Signature')
- let g:LSP_Show_Signature = v:true
-endif
-
-if !exists('g:LSP_Hover_In_Preview')
- let g:LSP_Hover_In_Preview = v:false
-endif
-
augroup LSPAutoCmds
au!
autocmd BufNewFile,BufReadPost *