mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-31 16:14:46 +02:00
plugins/lualine: use gitPackage
This commit is contained in:
parent
831c814bb3
commit
ce6573424d
2 changed files with 13 additions and 1 deletions
|
@ -108,6 +108,11 @@ in
|
|||
|
||||
package = helpers.mkPluginPackageOption "lualine" pkgs.vimPlugins.lualine-nvim;
|
||||
|
||||
gitPackage = helpers.mkPackageOption {
|
||||
name = "git";
|
||||
default = pkgs.git;
|
||||
};
|
||||
|
||||
iconsEnabled = mkOption {
|
||||
type = types.bool;
|
||||
description = "Whether to enable/disable icons for all components.";
|
||||
|
@ -245,7 +250,7 @@ in
|
|||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ cfg.package ] ++ (optional cfg.iconsEnabled pkgs.vimPlugins.nvim-web-devicons);
|
||||
extraPackages = [ pkgs.git ];
|
||||
extraPackages = [ cfg.gitPackage ];
|
||||
extraConfigLua = ''require("lualine").setup(${helpers.toLuaObject setupOptions})'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -114,4 +114,11 @@
|
|||
extensions = [ "nvim-tree" ];
|
||||
};
|
||||
};
|
||||
|
||||
no-packages = {
|
||||
plugins.lualine = {
|
||||
enable = true;
|
||||
gitPackage = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue