mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 12:09:48 +01:00
dev use submodules for diagnostics
This commit is contained in:
parent
b90ec97fed
commit
500c9b67dd
2 changed files with 61 additions and 49 deletions
|
@ -199,18 +199,6 @@ with builtins; {
|
||||||
debounceDelay = 50;
|
debounceDelay = 50;
|
||||||
showOnDirs = false;
|
showOnDirs = false;
|
||||||
showOnOpenDirs = true;
|
showOnOpenDirs = true;
|
||||||
|
|
||||||
icons = {
|
|
||||||
hint = "";
|
|
||||||
info = "";
|
|
||||||
warning = "";
|
|
||||||
error = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
severity = {
|
|
||||||
min = "HINT";
|
|
||||||
max = "ERROR";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
|
@ -232,34 +220,58 @@ with builtins; {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
icons = {
|
icons = mkOption {
|
||||||
hint = mkOption {
|
description = "Icons for diagnostic severity.";
|
||||||
description = "Icon used for `hint` diagnostic.";
|
|
||||||
type = types.str;
|
default = {
|
||||||
|
hint = "";
|
||||||
|
info = "";
|
||||||
|
warning = "";
|
||||||
|
error = "";
|
||||||
};
|
};
|
||||||
info = mkOption {
|
|
||||||
description = "Icon used for `info` diagnostic.";
|
type = types.submodule {
|
||||||
type = types.str;
|
options = {
|
||||||
};
|
hint = mkOption {
|
||||||
warning = mkOption {
|
description = "Icon used for `hint` diagnostic.";
|
||||||
description = "Icon used for `warning` diagnostic.";
|
type = types.str;
|
||||||
type = types.str;
|
};
|
||||||
};
|
info = mkOption {
|
||||||
error = mkOption {
|
description = "Icon used for `info` diagnostic.";
|
||||||
description = "Icon used for `error` diagnostic.";
|
type = types.str;
|
||||||
type = types.str;
|
};
|
||||||
|
warning = mkOption {
|
||||||
|
description = "Icon used for `warning` diagnostic.";
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
error = mkOption {
|
||||||
|
description = "Icon used for `error` diagnostic.";
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
severity = {
|
severity = mkOption {
|
||||||
min = mkOption {
|
description = "Severity for which the diagnostics will be displayed";
|
||||||
description = "Minimum severity.";
|
|
||||||
type = types.enum ["HINT" "INFO" "WARNING" "ERROR"];
|
default = {
|
||||||
|
min = "HINT";
|
||||||
|
max = "ERROR";
|
||||||
};
|
};
|
||||||
|
|
||||||
max = mkOption {
|
type = types.submodule {
|
||||||
description = "Maximum severity.";
|
options = {
|
||||||
type = types.enum ["HINT" "INFO" "WARNING" "ERROR"];
|
min = mkOption {
|
||||||
|
description = "Minimum severity.";
|
||||||
|
type = types.enum ["HINT" "INFO" "WARNING" "ERROR"];
|
||||||
|
};
|
||||||
|
|
||||||
|
max = mkOption {
|
||||||
|
description = "Maximum severity.";
|
||||||
|
type = types.enum ["HINT" "INFO" "WARNING" "ERROR"];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue