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