Files
vim-lsp-mirror/ftplugin/lsp-hover.vim
Andrej Zieger 1790680598 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
2019-06-25 11:04:52 -07:00

20 lines
643 B
VimL

" No usual did_ftplugin header here as we NEED to run this always
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')
setlocal nospell
endif
let &l:statusline = ' LSP Hover'
let b:undo_ftplugin = 'setlocal pvw< bt< bh< swf< bl< cul< fen<' .
\ (has('syntax') ? ' spell<' : '') .
\ ' | unlet! g:markdown_fenced_languages'