mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
utility/nvim-biscuits: Add pluginRC
Add the setup function for the nvim-biscuits with setupOps to pluginRC.
This commit is contained in:
parent
55fc5fecb8
commit
66e32eeafa
1 changed files with 6 additions and 0 deletions
|
@ -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})
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue