plugins.gitsigns.settings.diff_opts

Diff options. If set to null they are derived from the vim diffopt.

Type: null or (attribute set of anything)

Default: null

Declared by:

plugins.gitsigns.settings.diff_opts.algorithm

Diff algorithm to use. Values:

  • “myers” the default algorithm
  • “minimal” spend extra time to generate the smallest possible diff
  • “patience” patience diff algorithm
  • “histogram” histogram diff algorithm

Plugin default: "myers"

Type: null or one of “myers”, “minimal”, “patience”, “histogram” or raw lua code

Default: null

Declared by:

plugins.gitsigns.settings.diff_opts.ignore_blank_lines

Ignore changes where lines are blank.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.gitsigns.settings.diff_opts.ignore_whitespace

Ignore all white space changes.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.gitsigns.settings.diff_opts.ignore_whitespace_change

Ignore changes in amount of white space. It should ignore adding trailing white space, but not leading white space.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.gitsigns.settings.diff_opts.ignore_whitespace_change_at_eol

Ignore white space changes at end of line.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.gitsigns.settings.diff_opts.indent_heuristic

Use the indent heuristic for the internal diff library.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.gitsigns.settings.diff_opts.internal

Use Neovim’s built in xdiff library for running diffs.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.gitsigns.settings.diff_opts.linematch

Enable second-stage diff on hunks to align lines. Requires internal=true.

Type: null or signed integer

Default: null

Declared by:

plugins.gitsigns.settings.diff_opts.vertical

Start diff mode with vertical splits.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by: