Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

hover

URL: https://github.com/lewis6991/hover.nvim/

Maintainers: Linus Warnatz


General framework for context aware hover providers (similar to vim.lsp.buf.hover). You should also create keybinds for:

  • require("hover").open()
  • require("hover").enter()
  • require("hover").switch()
  • require("hover").switch("previous")
  • require("hover").switch("next")

Also, create a bind from <MouseMove> to require("hover").mouse() and set opts.mousemoveevent = true.

plugins.hover.enable

Whether to enable hover.

Type: boolean

Default:

false

Example:

true

Declared by:

plugins.hover.enableMouse

Whether to enable mouse hover support.

Type: boolean

Default:

false

Example:

true

Declared by:

plugins.hover.package

The hover package to use.

Type: package

Default:

pkgs.vimPlugins.hover-nvim

Declared by:

plugins.hover.autoLoad

Whether to automatically load hover when neovim starts.

Type: boolean

Default: false when lazy-loading is enabled.

Example:

false

Declared by:

plugins.hover.callSetup

Whether to generate the standard require('hover').config(...) call for this plugin.

Explicitly set to false to disable calling .config().

Type: boolean

Default:

true

Declared by:

plugins.hover.settings

Options provided to the require('hover').config function.

Type: lua value

Default:

{ }

Example:

{
  mouse_delay = 1000;
  mouse_providers = [
    "hover.providers.lsp"
  ];
  preview_opts = {
    border = "single";
  };
  preview_window = false;
  providers = [
    "hover.providers.diagnostic"
    "hover.providers.lsp"
    "hover.providers.dap"
    "hover.providers.man"
    "hover.providers.dictionary"
  ];
  title = true;
}

Declared by: