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

Whether to enable dprint: a code formatter for common filetypes like markdown, toml, yaml, and many more. See https://dprint.dev/ .

Type: boolean

Default:

false

Example:

true

Declared by:

programs.dprint.package

The dprint package to use.

Type: null or package

Default:

pkgs.dprint

Declared by:

programs.dprint.settings

Settings to add to $XDG_CONFIG_HOME/dprint/dprint.json.

Type: JSON value

Default:

{ }

Example:

{
  excludes = [
    "**/node_modules"
    "**/*-lock.json"
  ];
  plugins = [
    "https://plugins.dprint.dev/typescript-0.96.1.wasm"
    "${pkgs.dprint-plugins.g-plane-pretty_yaml}/plugin.wasm"
  ];
  json = { };
  malva = { };
  markdown = { };
  toml = { };
  typescript = { };
  yaml = { };
}

Declared by: