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.vivid.enable

Whether to enable vivid.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.vivid.enableBashIntegration

Whether to enable Bash integration.

Type: boolean

Default:

Example:

false

Declared by:

programs.vivid.enableFishIntegration

Whether to enable Fish integration.

Type: boolean

Default:

Example:

false

Declared by:

programs.vivid.enableNushellIntegration

Whether to enable Nushell integration.

Type: boolean

Default:

Example:

false

Declared by:

programs.vivid.enableZshIntegration

Whether to enable Zsh integration.

Type: boolean

Default:

Example:

false

Declared by:

programs.vivid.package

The vivid package to use.

Type: null or package

Default:

pkgs.vivid

Declared by:

programs.vivid.activeTheme

Active theme for vivid.

Type: null or string

Default:

null

Example:

"molokai"

Declared by:

programs.vivid.colorMode

Color mode for vivid.

Type: null or string or one of “8-bit”, “24-bit”

Default:

null

Example:

"8-bit"

Declared by:

programs.vivid.filetypes

Filetype database for vivid. You can find an example config at: https://github.com/sharkdp/vivid/blob/master/config/filetypes.yml.

Type: YAML 1.1 value

Default:

{ }

Example:

{
  text = {
    licenses = [
      "LICENCE"
      "COPYRIGHT"
    ];
    special = [
      "CHANGELOG.md"
      "CODE_OF_CONDUCT.md"
      "CONTRIBUTING.md"
    ];
    todo = [
      "TODO.md"
      "TODO.txt"
    ];
  };
}

Declared by:

programs.vivid.themes

An attribute set of vivid themes. Each value can either be a path to a theme file or an attribute set defining the theme directly (which will be converted from Nix to YAML).

Type: attribute set of (absolute path or YAML 1.1 value)

Default:

{ }

Example:

{
  ayu = builtins.fetchurl {
    url = "https://raw.githubusercontent.com/NearlyTRex/Vivid/refs/heads/master/themes/ayu.yml";
    hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
  };

  mocha = builtins.fetchurl {
    url = "https://raw.githubusercontent.com/NearlyTRex/Vivid/refs/heads/master/themes/catppuccin-mocha.yml";
    hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
  };

  my-custom-theme = {
    colors = {
      blue = "0000ff";
    };
    core = {
      directory = {
        foreground = "blue";
        font-style = "bold";
      };
    };
  };
}

Declared by: