mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-08 11:55:17 +02:00
dashboard: package option
This commit is contained in:
parent
cad521bc6a
commit
2298e766ce
1 changed files with 7 additions and 1 deletions
|
@ -10,6 +10,12 @@ in
|
|||
plugins.dashboard = {
|
||||
enable = mkEnableOption "Enable dashboard";
|
||||
|
||||
package = {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.dashboard-nvim;
|
||||
description = "Plugin to use for dashboard-nvim";
|
||||
};
|
||||
|
||||
header = mkOption {
|
||||
description = "Header text";
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
|
@ -126,7 +132,7 @@ in
|
|||
filteredOptions = filterAttrs (_: v: !isNull v) options;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.dashboard-nvim ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
extraConfigLua = ''
|
||||
local dashboard = require("dashboard")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue