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

gitgutter

URL: https://github.com/airblade/vim-gitgutter/

Maintainers: Gaetan Lepage


A Vim plugin which shows a git diff in the sign column.

plugins.gitgutter.enable

Whether to enable gitgutter.

Type: boolean

Default: false

Example: true

Declared by:

plugins.gitgutter.package

The gitgutter package to use.

Type: package

Default: pkgs.vimPlugins.vim-gitgutter

Declared by:

plugins.gitgutter.autoLoad

Whether to automatically load gitgutter when neovim starts.

Type: boolean

Default: false when lazy-loading is enabled.

Example: false

Declared by:

plugins.gitgutter.recommendedSettings

Set recommended neovim option.

Type: boolean

Default: true

Declared by:

plugins.gitgutter.settings

The configuration options for gitgutter without the gitgutter_ prefix.

For example, the following settings are equivialent to these :setglobal commands:

  • foo_bar = 1 -> :setglobal gitgutter_foo_bar=1
  • hello = "world" -> :setglobal gitgutter_hello="world"
  • some_toggle = true -> :setglobal gitgutter_some_toggle
  • other_toggle = false -> :setglobal nogitgutter_other_toggle

Type: lua value

Default: { }

Example:

{
  preview_win_floating = true;
  set_sign_backgrounds = true;
  sign_modified_removed = "*";
  sign_priority = 20;
}

Declared by: