utility/nvim-biscuits: Add pluginRC

Add the setup function for the nvim-biscuits with setupOps to pluginRC.
This commit is contained in:
Cool-Game-Dev 2025-07-23 12:20:14 -05:00
commit 66e32eeafa
No known key found for this signature in database

View file

@ -4,11 +4,17 @@
... ...
}: let }: let
inherit (lib.modules) mkIf; inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.utility.nvim-biscuits; cfg = config.vim.utility.nvim-biscuits;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim = { vim = {
startPlugins = ["nvim-biscuits"]; startPlugins = ["nvim-biscuits"];
pluginRC.nvim-biscuits = entryAnywhere ''
require('nvim-biscuits').setup(${toLuaObject cfg.setupOpts})
'';
}; };
}; };
} }