2023-02-27 20:26:31 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
2023-03-31 04:20:35 +02:00
|
|
|
with builtins; {
|
2023-02-27 20:26:31 +01:00
|
|
|
options.vim.notify.nvim-notify = {
|
|
|
|
enable = mkEnableOption "Enable nvim-notify plugin";
|
|
|
|
stages = mkOption {
|
|
|
|
type = types.enum ["fade_in_slide_out" "fade_in" "slide_out" "none"];
|
|
|
|
default = "fade_in_slide_out";
|
|
|
|
description = "The stages of the notification";
|
|
|
|
};
|
|
|
|
timeout = mkOption {
|
|
|
|
type = types.int;
|
|
|
|
default = 1000;
|
|
|
|
description = "The timeout of the notification";
|
|
|
|
};
|
|
|
|
background_colour = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "#000000";
|
|
|
|
description = "The background colour of the notification";
|
|
|
|
};
|
|
|
|
position = mkOption {
|
|
|
|
type = types.enum ["top_left" "top_right" "bottom_left" "bottom_right"];
|
|
|
|
default = "top_right";
|
|
|
|
description = "The position of the notification";
|
|
|
|
};
|
|
|
|
icons = mkOption {
|
|
|
|
type = types.attrsOf types.str;
|
|
|
|
default = {
|
|
|
|
ERROR = "";
|
|
|
|
WARN = "";
|
|
|
|
INFO = "";
|
|
|
|
DEBUG = "";
|
|
|
|
TRACE = "";
|
|
|
|
};
|
|
|
|
description = "The icons of the notification";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|