mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-14 22:25:59 +01:00
34 lines
812 B
Nix
34 lines
812 B
Nix
{lib, ...}: let
|
|
inherit (lib.options) mkEnableOption mkOption;
|
|
inherit (lib.types) attrsOf str int;
|
|
in {
|
|
options.vim.lsp.null-ls = {
|
|
enable = mkEnableOption "null-ls, also enabled automatically";
|
|
|
|
debug = mkEnableOption "debugging information for `null-ls";
|
|
|
|
diagnostics_format = mkOption {
|
|
type = str;
|
|
default = "[#{m}] #{s} (#{c})";
|
|
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";
|
|
};
|
|
|
|
sources = mkOption {
|
|
description = "null-ls sources";
|
|
type = attrsOf str;
|
|
default = {};
|
|
};
|
|
};
|
|
}
|