mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-08 20:06:25 +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 = {
|
plugins.dashboard = {
|
||||||
enable = mkEnableOption "Enable dashboard";
|
enable = mkEnableOption "Enable dashboard";
|
||||||
|
|
||||||
|
package = {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.dashboard-nvim;
|
||||||
|
description = "Plugin to use for dashboard-nvim";
|
||||||
|
};
|
||||||
|
|
||||||
header = mkOption {
|
header = mkOption {
|
||||||
description = "Header text";
|
description = "Header text";
|
||||||
type = types.nullOr (types.listOf types.str);
|
type = types.nullOr (types.listOf types.str);
|
||||||
|
@ -126,7 +132,7 @@ in
|
||||||
filteredOptions = filterAttrs (_: v: !isNull v) options;
|
filteredOptions = filterAttrs (_: v: !isNull v) options;
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = [ pkgs.vimPlugins.dashboard-nvim ];
|
extraPlugins = [ cfg.package ];
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
local dashboard = require("dashboard")
|
local dashboard = require("dashboard")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue