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

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

Default: null

Plugin default: "myers"

Declared by:

plugins.gitsigns.settings.diff_opts.ignore_blank_lines

Ignore changes where lines are blank.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.gitsigns.settings.diff_opts.ignore_whitespace

Ignore all white space changes.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

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.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.gitsigns.settings.diff_opts.ignore_whitespace_change_at_eol

Ignore white space changes at end of line.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.gitsigns.settings.diff_opts.indent_heuristic

Use the indent heuristic for the internal diff library.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.gitsigns.settings.diff_opts.internal

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

Type: null or boolean or raw lua code

Default: null

Plugin default: false

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.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by: