neovim-flake/modules/ui/notifications/nvim-notify/nvim-notify.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

{lib, ...}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) enum int str attrsOf;
in {
2023-04-03 11:12:05 +02:00
options.vim.notify.nvim-notify = {
enable = mkEnableOption "nvim-notify notifications";
2023-04-03 11:12:05 +02:00
stages = mkOption {
type = enum ["fade_in_slide_out" "fade_in" "slide_out" "none"];
2023-04-03 11:12:05 +02:00
default = "fade_in_slide_out";
description = "The stages of the notification";
};
2023-04-03 11:12:05 +02:00
timeout = mkOption {
type = int;
2023-04-03 11:12:05 +02:00
default = 1000;
description = "The timeout of the notification";
};
2023-04-03 11:12:05 +02:00
background_colour = mkOption {
type = str;
2023-04-03 11:12:05 +02:00
default = "#000000";
description = "The background colour of the notification";
};
2023-04-03 11:12:05 +02:00
position = mkOption {
type = enum ["top_left" "top_right" "bottom_left" "bottom_right"];
2023-04-03 11:12:05 +02:00
default = "top_right";
description = "The position of the notification";
};
2023-04-03 11:12:05 +02:00
icons = mkOption {
type = attrsOf str;
description = "The icons of the notification";
2023-04-03 11:12:05 +02:00
default = {
ERROR = "";
WARN = "";
INFO = "";
DEBUG = "";
TRACE = "";
};
};
};
}