Skip to content

yshui/tooltip.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

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"

About

Display tooltip for neovim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages