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

programs.difftastic.enable

Whether to enable difftastic, a structural diff tool.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.difftastic.package

The difftastic package to use.

Type: package

Default:

pkgs.difftastic

Declared by:

programs.difftastic.git.enable

Whether to enable git integration for difftastic.

When enabled, difftastic will be configured as git’s external diff command, as a git difftool, or both, depending on the value of programs.difftastic.git.mode.

Type: boolean

Default:

false

Declared by:

programs.difftastic.git.mode

How difftastic integrates with git.

  • "external": set diff.external so git diff uses difftastic by default.
  • "difftool": only configure difftastic as a git difftool (diff.tool and difftool.difftastic.cmd), leaving git diff untouched.
  • "both": configure both diff.external and the difftool.

Type: one of “external”, “difftool”, “both”

Default:

"external"

Example:

"difftool"

Declared by:

programs.difftastic.jujutsu.enable

Whether to enable jujutsu integration for difftastic.

Type: boolean

Default:

false

Declared by:

programs.difftastic.options

Configuration options for difftastic. See difft --help

Type: attribute set of (string or signed integer or boolean or list of (string or signed integer or boolean))

Default:

{ }

Example:

{
  color = "always";
  sort-paths = true;
  tab-width = 8;
}

Declared by: