1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-27 23:09:49 +01:00
neovim-flake/modules/plugins/ui/modes/modes.nix

49 lines
1.4 KiB
Nix
Raw Normal View History

{lib, ...}: let
inherit (lib.options) mkOption mkEnableOption;
2024-03-10 20:02:04 +01:00
inherit (lib.types) bool str float;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
2023-04-04 22:33:36 +02:00
options.vim.ui.modes-nvim = {
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
};
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;
};
};
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 00:49:38 +02:00
};
2023-04-04 22:33:36 +02:00
};
}