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 * 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
20 lines
643 B
VimL
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'
|