mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 19:35:01 +02:00
lualine: package option
This commit is contained in:
parent
62e2a70ccd
commit
4cfae95d52
1 changed files with 7 additions and 1 deletions
|
@ -58,6 +58,12 @@ in
|
||||||
plugins.lualine = {
|
plugins.lualine = {
|
||||||
enable = mkEnableOption "Enable lualine";
|
enable = mkEnableOption "Enable lualine";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.lualine-nvim;
|
||||||
|
description = "Plugin to use for lualine";
|
||||||
|
};
|
||||||
|
|
||||||
theme = mkOption {
|
theme = mkOption {
|
||||||
default = config.colorscheme;
|
default = config.colorscheme;
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
|
@ -144,7 +150,7 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = [ pkgs.vimPlugins.lualine-nvim ];
|
extraPlugins = [ cfg.package ];
|
||||||
extraPackages = [ pkgs.git ];
|
extraPackages = [ pkgs.git ];
|
||||||
extraConfigLua =
|
extraConfigLua =
|
||||||
''require("lualine").setup(${helpers.toLuaObject setupOptions})'';
|
''require("lualine").setup(${helpers.toLuaObject setupOptions})'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue