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
10 changed files with 106 additions and 52 deletions

View file

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

View file

@ -0,0 +1,14 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.dashboard.dashboard-nvim;
in {
options.vim.dashboard.dashboard-nvim = {
enable = mkEnableOption "dashboard-nvim";
};
}

View file

@ -0,0 +1,6 @@
_: {
imports = [
./dashboard-nvim.nix
./config.nix
];
}