2023-11-07 01:50:27 +01:00
|
|
|
{lib, ...}: let
|
2024-03-16 14:25:30 +01:00
|
|
|
inherit (lib.options) mkOption mkEnableOption;
|
2024-03-10 20:02:04 +01:00
|
|
|
inherit (lib.types) bool str float;
|
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
2023-11-07 01:50:27 +01:00
|
|
|
in {
|
2023-04-04 22:33:36 +02:00
|
|
|
options.vim.ui.modes-nvim = {
|
2024-03-15 13:01:46 +01:00
|
|
|
enable = mkEnableOption "modes.nvim's prismatic line decorations";
|
|
|
|
|
2024-03-10 20:02:04 +01:00
|
|
|
setupOpts = {
|
|
|
|
setCursorline = mkOption {
|
|
|
|
type = bool;
|
|
|
|
description = "Set a colored cursorline on current line";
|
|
|
|
default = false; # looks ugly, disabled by default
|
2023-06-06 01:33:18 +02:00
|
|
|
};
|
2024-03-16 14:25:30 +01:00
|
|
|
|
2024-03-10 20:02:04 +01:00
|
|
|
line_opacity = {
|
|
|
|
visual = mkOption {
|
|
|
|
type = float;
|
|
|
|
description = "Set opacity for cursorline and number background";
|
|
|
|
default = 0.0;
|
|
|
|
};
|
2023-06-06 01:33:18 +02:00
|
|
|
};
|
2024-03-16 14:25:30 +01:00
|
|
|
|
2024-03-10 20:02:04 +01: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-06 01:33:18 +02:00
|
|
|
};
|
2023-06-06 00:49:38 +02:00
|
|
|
};
|
2023-04-04 22:33:36 +02:00
|
|
|
};
|
|
|
|
}
|