lint

URL: https://github.com/mfussenegger/nvim-lint/

Maintainers: Heitor Augusto

plugins.lint.enable

Whether to enable nvim-lint.

Type: boolean

Default: false

Example: true

Declared by:

plugins.lint.package

The nvim-lint package to use.

Type: package

Default: pkgs.vimPlugins.nvim-lint

Declared by:

plugins.lint.autoLoad

Whether to automatically load nvim-lint when neovim starts.

Type: boolean

Default: false when lazy-loading is enabled.

Example: false

Declared by:

plugins.lint.customLinters

Configure the linters you want to run per file type. It can be both an attrs or a string containing the lua code that returns the appropriate table.

Type: null or (attribute set of (string or (attribute set of anything) or raw lua code)) or raw lua code

Default: null

Plugin default: { }

Declared by:

plugins.lint.linters

Configure the linters you want to run. You can also add custom linters here.

Type: null or (attribute set of ((attribute set of anything) or raw lua code)) or raw lua code

Default: null

Plugin default:

{
  phpcs = {
    args = [
      "-q"
      "--report=json"
      "-"
    ];
  };
}

Declared by:

plugins.lint.lintersByFt

Configure the linters you want to run per file type.

Type: null or (attribute set of ((list of string) or raw lua code)) or raw lua code

Default: null

Plugin default:

{
  clojure = [
    "clj-kondo"
  ];
  dockerfile = [
    "hadolint"
  ];
  inko = [
    "inko"
  ];
  janet = [
    "janet"
  ];
  json = [
    "jsonlint"
  ];
  markdown = [
    "vale"
  ];
  rst = [
    "vale"
  ];
  ruby = [
    "ruby"
  ];
  terraform = [
    "tflint"
  ];
  text = [
    "vale"
  ];
}

Declared by: