mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-08 10:03:20 +00:00
28 lines
884 B
Nix
28 lines
884 B
Nix
|
{lib, ...}: let
|
||
|
inherit (lib.options) mkOption mkEnableOption;
|
||
|
inherit (lib.types) attrsOf listOf str;
|
||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||
|
in {
|
||
|
options.vim.diagnostics.nvim-lint = {
|
||
|
enable = mkEnableOption "asynchronous linter plugin for Neovim [nvim-lint]";
|
||
|
setupOpts = mkPluginSetupOption "nvim-lint" {
|
||
|
linters_by_ft = mkOption {
|
||
|
type = attrsOf (listOf str);
|
||
|
default = {};
|
||
|
example = {
|
||
|
text = ["vale"];
|
||
|
markdown = ["vale"];
|
||
|
};
|
||
|
|
||
|
description = ''
|
||
|
Map of filetype to formatters. This option takes a set of
|
||
|
`key = value` format where the `value` will be converted
|
||
|
to its Lua equivalent. You are responsible for passing the
|
||
|
correct Nix data types to generate a correct Lua value that
|
||
|
conform is able to accept.
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|