mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-09 03:41:35 +00:00
feat: add alpha and dashboard-nvim for dashboard options
This commit is contained in:
parent
0c62c6578b
commit
7546dc46d3
5 changed files with 265 additions and 22 deletions
24
modules/dashboard/alpha.nix
Normal file
24
modules/dashboard/alpha.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with builtins; let
|
||||
cfg = config.vim.dashboard.alpha;
|
||||
in {
|
||||
options.vim.dashboard.alpha = {
|
||||
enable = mkEnableOption "alpha";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
vim.startPlugins = [
|
||||
"alpha-nvim"
|
||||
];
|
||||
|
||||
vim.luaConfigRC.alpha = nvim.dag.entryAnywhere ''
|
||||
require'alpha'.setup(require'alpha.themes.startify'.config)
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue