92

GitHub - ncm2/float-preview.nvim: Less annoying completion preview window based...

 5 years ago
source link: https://github.com/ncm2/float-preview.nvim
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

float-preview.nvim

asciicast

Note that this is a general purpose plugin instead of ncm2 only, it applies to :help complete-items with info field available.

Why ?

Vim's builtin set completeopt+=preview is annoying. When the preview window is opened, it simply pumps text out of my eye spot. Which makes it very disturbing and actually unusable.

This plugin uses neovim's floating Window, it should never pumps text out of your eye spot.

Config && API

g:float_preview#winhl

Custom highlights for preview window. See :help 'winhl' for more information.

g:float_preview#height

Height of the preview window. Defaults to :help 'previewheight'.

g:float_preview#auto_close

Defaults to 1. If you don't want this plugin auto closing the preview window, use :let g:float_preview#auto_close = 0 and call float_preview#close() by yourself.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK