1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-27 15:09:49 +01:00
neovim-flake/modules/plugins/dashboard/dashboard-nvim/config.nix

22 lines
412 B
Nix
Raw Normal View History

2023-02-03 08:36:08 +01:00
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
2023-02-03 08:36:08 +01:00
cfg = config.vim.dashboard.dashboard-nvim;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = ["dashboard-nvim"];
2023-02-03 08:36:08 +01:00
pluginRC.dashboard-nvim = entryAnywhere ''
require("dashboard").setup(${toLuaObject cfg.setupOpts})
'';
};
2023-02-03 08:36:08 +01:00
};
}