mini/cursorword: init

This commit is contained in:
raf 2025-04-23 16:02:39 +03:00
commit 8ab559ccfe
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 51 additions and 0 deletions

View file

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