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:
Andrej Zieger
2019-06-25 19:04:52 +01:00
committed by Prabir Shrestha
parent e0f832443b
commit 1790680598
5 changed files with 305 additions and 15 deletions

View File

@@ -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')