mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
preview information shown in hover at the cursor (#395)
* preview information shown in hover at the cursor * lint * Fix hover float positioning * Integrate vim8.1 popup for hover/preview * lint * Fix hover float positioning above cursor line * Closing and focusing floating preview (nvim) * Renamed variable of preview window id * autocmd events for open/close floats * Closing of floating preview & lightlinefix (vim8.1) * Added doubletap functionality to preview
This commit is contained in:
committed by
Prabir Shrestha
parent
e0f832443b
commit
1790680598
@@ -1,6 +1,11 @@
|
||||
" No usual did_ftplugin header here as we NEED to run this always
|
||||
|
||||
setlocal previewwindow buftype=nofile bufhidden=wipe noswapfile nobuflisted
|
||||
if has('patch-8.1.1517') && g:lsp_preview_float && !has('nvim')
|
||||
" Can not set buftype or popup_close will fail with 'not a popup window'
|
||||
setlocal previewwindow bufhidden=wipe noswapfile nobuflisted
|
||||
else
|
||||
setlocal previewwindow buftype=nofile bufhidden=wipe noswapfile nobuflisted
|
||||
endif
|
||||
setlocal nocursorline nofoldenable
|
||||
|
||||
if has('syntax')
|
||||
|
||||
Reference in New Issue
Block a user