All Projects → yshui → Tooltip.nvim

yshui / Tooltip.nvim

Display tooltip for neovim

Programming Languages

python
139335 projects - #7 most used programming language

tooltip.nvim

This neovim plugin allows you to display a tooltip positioned at given row and column.

It can be used in conjunction with tools like LanguageClient-neovim to show useful information about the text around the cursor.

Example

Your terminal emulator needs to set the WINDOWID environment variable. Most of the modern terminals do this.

This plugin will also work inside tmux.

Notice: This plugin is mostly a Proof-of-Concept

Requirements

You need those python modules:

  • PyGObject
  • cairo
  • python-xlib

Other dependencies:

  • Gtk
  • Pango

Usage

To show the tooltip:

" text can contain pango markup, see https://developer.gnome.org/pango/stable/PangoMarkupFormat.html
" position of the cursor can be retrieved with screenrow() and screencol()
call ShowTooltip(<row>, <column>, <text>)

To hide the tooltip:

call HideTooltip()

Configuration

" Border width
let g:tooltip_border_width = 2
" Background color"
let g:tooltip_background = "black"
" Text color
let g:tooltip_foreground = "white"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].