]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-lsp/ftplugin/lsp-hover.vim

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit 'd49e95aa7ba744f0a7f544aca43afdb6aab41f24' as '.vim/bundle/asyncomplete...
[etc/vim.git] / .vim / bundle / vim-lsp / ftplugin / lsp-hover.vim
1 " No usual did_ftplugin header here as we NEED to run this always
2
3 if has('patch-8.1.1517') && g:lsp_preview_float && !has('nvim')
4   " Can not set buftype or popup_close will fail with 'not a popup window'
5   setlocal bufhidden=wipe noswapfile nobuflisted
6 else
7   setlocal previewwindow buftype=nofile bufhidden=wipe noswapfile nobuflisted
8 endif
9
10 if has('conceal') && b:lsp_do_conceal
11     setlocal conceallevel=2
12 endif
13
14 setlocal nocursorline nofoldenable nonumber norelativenumber
15
16 if has('syntax')
17     setlocal nospell
18 endif
19
20 let b:undo_ftplugin = 'setlocal pvw< bt< bh< swf< bl< cul< fen<' .
21             \ (has('syntax') ? ' spell<' : '') .
22             \ ' number< relativenumber<' .
23             \ (has('conceal') && b:lsp_do_conceal ? ' conceallevel<' : '') .
24             \ ' | unlet! g:markdown_fenced_languages'