2023-02-01 20:11:37 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-07 01:50:27 +01:00
|
|
|
}: let
|
2024-03-24 01:14:39 +01:00
|
|
|
inherit (lib.options) mkEnableOption mkOption literalExpression;
|
2024-07-12 17:47:33 +02:00
|
|
|
inherit (lib.types) int bool str nullOr either listOf attrsOf;
|
2024-03-24 01:14:39 +01:00
|
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
2023-11-07 01:50:27 +01:00
|
|
|
|
2023-04-18 01:34:41 +02:00
|
|
|
cfg = config.vim.visuals;
|
|
|
|
in {
|
2023-02-01 20:11:37 +01:00
|
|
|
options.vim.visuals = {
|
2023-04-18 01:17:36 +02:00
|
|
|
enable = mkEnableOption "Visual enhancements.";
|
2023-02-01 20:11:37 +01:00
|
|
|
|
2023-10-21 19:15:36 +02:00
|
|
|
smoothScroll.enable = mkEnableOption "smooth scrolling [cinnamon-nvim]";
|
2023-02-03 22:20:20 +01:00
|
|
|
|
2023-04-15 15:35:34 +02:00
|
|
|
cellularAutomaton = {
|
2023-10-21 19:15:36 +02:00
|
|
|
enable = mkEnableOption "cellular automaton [cellular-automaton]";
|
2023-04-15 15:35:34 +02:00
|
|
|
|
|
|
|
mappings = {
|
|
|
|
makeItRain = mkMappingOption "Make it rain [cellular-automaton]" "<leader>fml";
|
|
|
|
};
|
2023-02-05 14:14:25 +01:00
|
|
|
};
|
|
|
|
|
2023-10-22 00:22:31 +02:00
|
|
|
highlight-undo = {
|
|
|
|
enable = mkEnableOption "highlight undo [highlight-undo]";
|
|
|
|
|
|
|
|
highlightForCount = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = bool;
|
2023-10-22 00:22:31 +02:00
|
|
|
default = true;
|
2023-11-04 12:30:04 +01:00
|
|
|
description = ''
|
2023-10-22 00:54:56 +02:00
|
|
|
Enable support for highlighting when a <count> is provided before the key
|
|
|
|
If set to false it will only highlight when the mapping is not prefixed with a <count>
|
2023-10-22 00:22:31 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
duration = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = int;
|
2023-10-22 00:22:31 +02:00
|
|
|
description = "Duration of highlight";
|
2023-10-23 19:15:31 +02:00
|
|
|
default = 500;
|
2023-10-22 00:22:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
undo = {
|
|
|
|
hlGroup = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = str;
|
2023-10-22 00:22:31 +02:00
|
|
|
description = "Highlight group for undo";
|
|
|
|
default = "HighlightUndo";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
redo = {
|
|
|
|
hlGroup = mkOption {
|
2024-03-24 01:14:39 +01:00
|
|
|
type = str;
|
2023-10-22 00:22:31 +02:00
|
|
|
description = "Highlight group for redo";
|
|
|
|
default = "HighlightUndo";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-02-01 20:11:37 +01:00
|
|
|
};
|
|
|
|
}
|