mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-12 19:45:58 +01:00
60 lines
1.5 KiB
Nix
60 lines
1.5 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.options) mkEnableOption mkOption literalExpression;
|
|
inherit (lib.types) int bool str nullOr either listOf attrsOf;
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
|
|
|
cfg = config.vim.visuals;
|
|
in {
|
|
options.vim.visuals = {
|
|
enable = mkEnableOption "Visual enhancements.";
|
|
|
|
smoothScroll.enable = mkEnableOption "smooth scrolling [cinnamon-nvim]";
|
|
|
|
cellularAutomaton = {
|
|
enable = mkEnableOption "cellular automaton [cellular-automaton]";
|
|
|
|
mappings = {
|
|
makeItRain = mkMappingOption "Make it rain [cellular-automaton]" "<leader>fml";
|
|
};
|
|
};
|
|
|
|
highlight-undo = {
|
|
enable = mkEnableOption "highlight undo [highlight-undo]";
|
|
|
|
highlightForCount = mkOption {
|
|
type = bool;
|
|
default = true;
|
|
description = ''
|
|
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>
|
|
'';
|
|
};
|
|
|
|
duration = mkOption {
|
|
type = int;
|
|
description = "Duration of highlight";
|
|
default = 500;
|
|
};
|
|
|
|
undo = {
|
|
hlGroup = mkOption {
|
|
type = str;
|
|
description = "Highlight group for undo";
|
|
default = "HighlightUndo";
|
|
};
|
|
};
|
|
|
|
redo = {
|
|
hlGroup = mkOption {
|
|
type = str;
|
|
description = "Highlight group for redo";
|
|
default = "HighlightUndo";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|