mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-18 16:29:07 +02:00
lightline: package option
This commit is contained in:
parent
21dfb4ec3d
commit
62e2a70ccd
1 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,12 @@ in
|
||||||
plugins.lightline = {
|
plugins.lightline = {
|
||||||
enable = mkEnableOption "Enable lightline";
|
enable = mkEnableOption "Enable lightline";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.lightline-vim;
|
||||||
|
description = "Plugin to use for lightline";
|
||||||
|
};
|
||||||
|
|
||||||
colorscheme = mkOption {
|
colorscheme = mkOption {
|
||||||
type = with types; nullOr str;
|
type = with types; nullOr str;
|
||||||
default = config.colorscheme;
|
default = config.colorscheme;
|
||||||
|
@ -84,7 +90,7 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = [ pkgs.vimPlugins.lightline-vim ];
|
extraPlugins = [ cfg.package ];
|
||||||
globals.lightline = mkIf (configAttrs != { }) configAttrs;
|
globals.lightline = mkIf (configAttrs != { }) configAttrs;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue