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

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

Type: boolean

Default: false

Example: true

Declared by:

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

Package to use for prettier.

Type: null or package

Default: pkgs.nodePackages.prettier

Declared by:

plugins.none-ls.sources.formatting.prettier.disableTsServerFormatter

Disables the formatting capability of the ts_ls language server if it is enabled.

Type: boolean

Default: false

Example: true

Declared by:

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

Options provided to the require('null-ls').builtins.formatting.prettier.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: