modules/ui: switch to explicit lib calls

This commit is contained in:
raf 2024-03-15 15:01:46 +03:00 committed by Ching Pei Yang
commit 5955d53077
9 changed files with 37 additions and 32 deletions

View file

@ -3,31 +3,37 @@
inherit (lib.types) str;
in {
options.vim.ui.modes-nvim = {
enable = mkEnableOption "prismatic line decorations [modes.nvim]";
setCursorline = mkEnableOption "colored cursorline on current line";
enable = mkEnableOption "modes.nvim's prismatic line decorations";
setCursorline = mkOption {
type = bool;
description = "Set a colored cursorline on current line";
default = false; # looks ugly, disabled by default
};
colors = {
copy = mkOption {
type = str;
description = "The #RRGGBB color code for the visual mode highlights";
default = "#f5c359";
description = "The #RRGGBB color code for the visual mode highlights";
};
delete = mkOption {
type = str;
description = "The #RRGGBB color code for the visual mode highlights";
default = "#c75c6a";
description = "The #RRGGBB color code for the visual mode highlights";
};
insert = mkOption {
type = str;
description = "The #RRGGBB color code for the visual mode highlights";
default = "#78ccc5";
description = "The #RRGGBB color code for the visual mode highlights";
};
visual = mkOption {
type = str;
description = "The #RRGGBB color code for the visual mode highlights";
default = "#9745be";
description = "The #RRGGBB color code for the visual mode highlights";
};
};
};