mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/notify: Fix typo for background_colour option (#290)
* plugins/notify: Fix typo for background_colour option
This commit is contained in:
parent
3ed69945b0
commit
a0498fc4c4
1 changed files with 12 additions and 2 deletions
|
@ -7,11 +7,21 @@
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.plugins.notify;
|
cfg = config.plugins.notify;
|
||||||
helpers = import ../helpers.nix {inherit lib;};
|
helpers = import ../helpers.nix {inherit lib;};
|
||||||
|
optionWarnings = import ../../lib/option-warnings.nix {inherit lib;};
|
||||||
|
basePluginPath = ["plugins" "notify"];
|
||||||
icon = mkOption {
|
icon = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
imports = [
|
||||||
|
(optionWarnings.mkRenamedOption {
|
||||||
|
# 2023-03-24
|
||||||
|
option = basePluginPath ++ ["backgroundColor"];
|
||||||
|
newOption = basePluginPath ++ ["backgroundColour"];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
options.plugins.notify = {
|
options.plugins.notify = {
|
||||||
enable = mkEnableOption "notify";
|
enable = mkEnableOption "notify";
|
||||||
|
|
||||||
|
@ -27,7 +37,7 @@ in {
|
||||||
description = "Default timeout for notifications";
|
description = "Default timeout for notifications";
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
backgroundColor = mkOption {
|
backgroundColour = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
description = "For stages that change opacity this is treated as the highlight between the window";
|
description = "For stages that change opacity this is treated as the highlight between the window";
|
||||||
default = null;
|
default = null;
|
||||||
|
@ -56,7 +66,7 @@ in {
|
||||||
setupOptions = with cfg; {
|
setupOptions = with cfg; {
|
||||||
stages = stages;
|
stages = stages;
|
||||||
timeout = timeout;
|
timeout = timeout;
|
||||||
background_color = backgroundColor;
|
background_colour = backgroundColour;
|
||||||
minimum_width = minimumWidth;
|
minimum_width = minimumWidth;
|
||||||
icons = with icons; {
|
icons = with icons; {
|
||||||
ERROR = error;
|
ERROR = error;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue