plugins.none-ls.sources.formatting.nixfmt.enable

Whether to enable the nixfmt formatting source for none-ls.

Type: boolean

Default: false

Example: true

Declared by:

plugins.none-ls.sources.formatting.nixfmt.package

Package to use for nixfmt.

Type: null or package

Default: pkgs.nixfmt-classic

Declared by:

plugins.none-ls.sources.formatting.nixfmt.settings

Options provided to the require('null-ls').builtins.formatting.nixfmt.with function.

See upstream’s BUILTIN_CONFIG documentation.

Type: null or lua code string or attribute set of anything

Default: null

Example:

{
  disabled_filetypes = [
    "lua"
  ];
  extra_args = [
    "-i"
    "2"
    "-ci"
  ];
  extra_filetypes = [
    "toml"
  ];
}

Declared by: