mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 11:25:06 +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 = {
|
||||
enable = mkEnableOption "Enable lualine";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.lualine-nvim;
|
||||
description = "Plugin to use for lualine";
|
||||
};
|
||||
|
||||
theme = mkOption {
|
||||
default = config.colorscheme;
|
||||
type = types.nullOr types.str;
|
||||
|
@ -144,7 +150,7 @@ in
|
|||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.lualine-nvim ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
extraPackages = [ pkgs.git ];
|
||||
extraConfigLua =
|
||||
''require("lualine").setup(${helpers.toLuaObject setupOptions})'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue