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

goto-preview

URL: https://github.com/rmagatti/goto-preview/

Maintainers: Gaetan Lepage


A small Neovim plugin for previewing definitions using floating windows.

plugins.goto-preview.enable

Whether to enable goto-preview.

Type: boolean

Default:

false

Example:

true

Declared by:

plugins.goto-preview.package

The goto-preview package to use.

Type: package

Default:

pkgs.vimPlugins.goto-preview

Declared by:

plugins.goto-preview.autoLoad

Whether to automatically load goto-preview when neovim starts.

Type: boolean

Default: false when lazy-loading is enabled.

Example:

false

Declared by:

plugins.goto-preview.settings

Options provided to the require('goto-preview').setup function.

Type: lua value

Default:

{ }

Example:

{
  default_mappings = false;
  height = 30;
  post_open_hook = {
    __raw = ''
      function(_, win)
        -- Close the current preview window with <Esc> or 'q'.
        local function close_window()
          vim.api.nvim_win_close(win, true)
        end
        vim.keymap.set('n', '<Esc>', close_window, { buffer = true })
        vim.keymap.set('n', 'q', close_window, { buffer = true })
      end
    '';
  };
}

Declared by: