feat: apply new module format to dashboard plugins [3/3]

This commit is contained in:
NotAShelf 2023-02-27 17:53:09 +03:00
commit f567b08e92
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
13 changed files with 540 additions and 486 deletions

View file

@ -1,25 +0,0 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.dashboard.dashboard-nvim;
in {
options.vim.dashboard.dashboard-nvim = {
enable = mkEnableOption "dashboard-nvim";
};
config = mkIf cfg.enable {
vim.startPlugins = [
"dashboard-nvim"
];
vim.luaConfigRC.dashboard-nvim = nvim.dag.entryAnywhere ''
require("dashboard").setup{
}
'';
};
}