mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
feat: apply new module format to dashboard plugins [3/3]
This commit is contained in:
parent
4436c2b2aa
commit
f567b08e92
10 changed files with 106 additions and 52 deletions
21
modules/dashboard/dashboard-nvim/config.nix
Normal file
21
modules/dashboard/dashboard-nvim/config.nix
Normal 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{
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
14
modules/dashboard/dashboard-nvim/dashboard-nvim.nix
Normal file
14
modules/dashboard/dashboard-nvim/dashboard-nvim.nix
Normal 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";
|
||||
};
|
||||
}
|
6
modules/dashboard/dashboard-nvim/default.nix
Normal file
6
modules/dashboard/dashboard-nvim/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./dashboard-nvim.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue