mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 12:28:32 +00:00
18 lines
366 B
Nix
18 lines
366 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
inherit (lib.nvim.lua) toLuaObject;
|
|
|
|
cfg = config.vim.ui.edgy-nvim;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim = {
|
|
startPlugins = ["edgy-nvim"];
|
|
pluginRC.edgy-nvim = entryAnywhere "require('edgy').setup(${toLuaObject cfg.setupOpts})";
|
|
};
|
|
};
|
|
}
|