2023-11-07 00:50:27 +00:00
|
|
|
{lib, ...}: let
|
2024-03-16 13:25:30 +00:00
|
|
|
inherit (lib.options) mkOption mkEnableOption;
|
2024-03-10 19:02:04 +00:00
|
|
|
inherit (lib.types) bool str float;
|
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
2023-11-07 00:50:27 +00:00
|
|
|
in {
|
2023-04-04 20:33:36 +00:00
|
|
|
options.vim.ui.modes-nvim = {
|
2024-03-15 12:01:46 +00:00
|
|
|
enable = mkEnableOption "modes.nvim's prismatic line decorations";
|
|
|
|
|
2024-03-10 19:02:04 +00:00
|
|
|
setupOpts = {
|
|
|
|
setCursorline = mkOption {
|
|
|
|
type = bool;
|
|
|
|
description = "Set a colored cursorline on current line";
|
|
|
|
default = false; # looks ugly, disabled by default
|
2023-06-05 23:33:18 +00:00
|
|
|
};
|
2024-03-16 13:25:30 +00:00
|
|
|
|
2024-03-10 19:02:04 +00:00
|
|
|
line_opacity = {
|
|
|
|
visual = mkOption {
|
|
|
|
type = float;
|
|
|
|
description = "Set opacity for cursorline and number background";
|
|
|
|
default = 0.0;
|
|
|
|
};
|
2023-06-05 23:33:18 +00:00
|
|
|
};
|
2024-03-16 13:25:30 +00:00
|
|
|
|
2024-03-10 19:02:04 +00:00
|
|
|
colors = mkPluginSetupOption "modes.nvim" {
|
|
|
|
copy = mkOption {
|
|
|
|
type = str;
|
|
|
|
description = "The #RRGGBB color code for the visual mode highlights";
|
|
|
|
default = "#f5c359";
|
|
|
|
};
|
|
|
|
delete = mkOption {
|
|
|
|
type = str;
|
|
|
|
description = "The #RRGGBB color code for the visual mode highlights";
|
|
|
|
default = "#c75c6a";
|
|
|
|
};
|
|
|
|
insert = mkOption {
|
|
|
|
type = str;
|
|
|
|
description = "The #RRGGBB color code for the visual mode highlights";
|
|
|
|
default = "#78ccc5";
|
|
|
|
};
|
|
|
|
visual = mkOption {
|
|
|
|
type = str;
|
|
|
|
description = "The #RRGGBB color code for the visual mode highlights";
|
|
|
|
default = "#9745be";
|
|
|
|
};
|
2023-06-05 23:33:18 +00:00
|
|
|
};
|
2023-06-05 22:49:38 +00:00
|
|
|
};
|
2023-04-04 20:33:36 +00:00
|
|
|
};
|
|
|
|
}
|