2024-10-07 00:31:54 +02:00
|
|
|
{lib, ...}: let
|
|
|
|
inherit (lib.modules) mkRemovedOptionModule;
|
|
|
|
inherit (lib.options) mkOption mkEnableOption;
|
2024-10-07 00:56:29 +02:00
|
|
|
inherit (lib.types) submodule attrs attrsOf;
|
2024-10-07 00:31:54 +02:00
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
(mkRemovedOptionModule ["vim" "visuals" "smoothScroll"] ''
|
|
|
|
`vim.visuals.smoothScroll` has been removed. You may consider enabling the
|
|
|
|
option `vim.visuals.cinnamon-nvim` to repliace previous smooth scrolling
|
|
|
|
behaviour.
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
|
|
|
|
options.vim.visuals.cinnamon-nvim = {
|
|
|
|
enable = mkEnableOption "smooth scrolling for ANY command [cinnamon-nvim]";
|
|
|
|
setupOpts = mkPluginSetupOption "cinnamon.nvim" {
|
|
|
|
options = mkOption {
|
|
|
|
type = attrs;
|
|
|
|
default = {
|
|
|
|
# Defaults provided for the sake of documentation only!
|
|
|
|
# Who would've guessed setupOpts.options would be confusing?
|
|
|
|
mode = "cursor";
|
|
|
|
count_only = false;
|
|
|
|
};
|
|
|
|
description = "Scroll options";
|
|
|
|
};
|
|
|
|
|
2024-10-07 00:56:29 +02:00
|
|
|
keymaps = {
|
|
|
|
basic = mkEnableOption "basic animation keymaps";
|
|
|
|
extra = mkEnableOption "extra animation keymaps";
|
2024-10-07 00:31:54 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|