2024-03-12 00:46:29 +00:00
|
|
|
{lib, ...}: let
|
|
|
|
inherit (lib.options) mkEnableOption mkOption;
|
2024-05-16 16:09:20 +00:00
|
|
|
inherit (lib.types) attrsOf str int;
|
2023-04-17 20:27:27 +00:00
|
|
|
in {
|
|
|
|
options.vim.lsp.null-ls = {
|
|
|
|
enable = mkEnableOption "null-ls, also enabled automatically";
|
|
|
|
|
2024-05-16 16:09:20 +00:00
|
|
|
debug = mkEnableOption "debugging information for `null-ls";
|
|
|
|
|
|
|
|
diagnostics_format = mkOption {
|
2024-05-16 16:35:19 +00:00
|
|
|
type = str;
|
|
|
|
default = "[#{m}] #{s} (#{c})";
|
2024-05-16 16:09:20 +00:00
|
|
|
description = "Diagnostic output format for null-ls";
|
|
|
|
};
|
|
|
|
|
|
|
|
debounce = mkOption {
|
|
|
|
type = int;
|
|
|
|
default = 250;
|
|
|
|
description = "Default debounce";
|
|
|
|
};
|
|
|
|
|
|
|
|
default_timeout = mkOption {
|
|
|
|
type = int;
|
|
|
|
default = 5000;
|
|
|
|
description = "Default timeout value, in miliseconds";
|
|
|
|
};
|
|
|
|
|
2023-04-17 20:27:27 +00:00
|
|
|
sources = mkOption {
|
|
|
|
description = "null-ls sources";
|
2024-03-12 00:46:29 +00:00
|
|
|
type = attrsOf str;
|
2023-04-17 20:27:27 +00:00
|
|
|
default = {};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|