nixeovim/modules/plugins/interface/lualine.nix
Dmitriy Pleshevskiy f3926f6365
modules/plugin: remove isDependency
do not import to local variable by default. Instead you should
set varName option.
2024-05-10 02:17:00 +03:00

37 lines
805 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.plugins.interface.lualine;
in
{
options.plugins.interface.lualine = with lib; {
enable = mkEnableOption "lualine-nvim";
package = mkPackageOption pkgs.vimPlugins "lualine-nvim" { };
settings = mkOption {
type = types.attrs;
default = { };
};
};
config = lib.mkIf cfg.enable (lib.mkMerge [
{
plugin.lualine-nvim = {
name = "lualine";
package = cfg.package;
setupSettings = lib.mkMerge [
cfg.settings
(lib.mkIf config.plugins.navigation.nvim-tree.enable {
options.ignore_focus = [ "NvimTree" ];
})
];
};
}
(lib.mkIf config.plugins.language-server.lspconfig.enable {
plugin.lualine-lsp-progress = { };
})
]);
}