visuals: move cinnamon-nvim to its own module; deprecate smoothScroll

The option visuals.smoothScroll was confusing as there can be more than one backend.
This commit is contained in:
raf 2024-10-07 01:31:54 +03:00
commit 658d380232
Signed by: NotAShelf
GPG key ID: AF26552424E53993
5 changed files with 69 additions and 5 deletions

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.visuals.cinnamon-nvim;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = ["cinnamon-nvim"];
pluginRC.cursorline = entryAnywhere ''
require("cinnamon").setup(${toLuaObject cfg.setupOpts})
'';
};
};
}