2023-02-03 07:36:08 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-07 00:50:27 +00:00
|
|
|
}: let
|
2024-02-26 05:05:23 +00:00
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
2024-09-28 19:18:28 +00:00
|
|
|
inherit (lib.nvim.lua) toLuaObject;
|
2023-11-07 00:50:27 +00:00
|
|
|
|
2023-02-03 07:36:08 +00:00
|
|
|
cfg = config.vim.dashboard.dashboard-nvim;
|
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
2024-09-28 19:18:28 +00:00
|
|
|
vim = {
|
|
|
|
startPlugins = ["dashboard-nvim"];
|
2023-02-03 07:36:08 +00:00
|
|
|
|
2024-09-28 19:18:28 +00:00
|
|
|
pluginRC.dashboard-nvim = entryAnywhere ''
|
|
|
|
require("dashboard").setup(${toLuaObject cfg.setupOpts})
|
|
|
|
'';
|
|
|
|
};
|
2023-02-03 07:36:08 +00:00
|
|
|
};
|
|
|
|
}
|