mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 04:35:58 +01:00
25 lines
399 B
Nix
25 lines
399 B
Nix
|
{
|
||
|
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)
|
||
|
'';
|
||
|
};
|
||
|
}
|