mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/efmls-configs: use dependencies for efm-langserver
This commit is contained in:
parent
c40f1b0fbd
commit
593e8114cd
3 changed files with 18 additions and 13 deletions
|
|
@ -20,10 +20,6 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
efmLangServerPackage = lib.mkPackageOption pkgs "efm-langserver" {
|
||||
nullable = true;
|
||||
};
|
||||
|
||||
externallyManagedPackages = lib.mkOption {
|
||||
type = with lib.types; either (enum [ "all" ]) (listOf str);
|
||||
description = ''
|
||||
|
|
@ -199,11 +195,21 @@ in
|
|||
config.settings.languages = setupOptions;
|
||||
};
|
||||
|
||||
extraPackages = [ cfg.efmLangServerPackage ] ++ (map (v: cfg.toolPackages.${v}) nixvimPkgs.right);
|
||||
extraPackages = map (name: cfg.toolPackages.${name}) nixvimPkgs.right;
|
||||
dependencies.efm-langserver.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
imports = lib.singleton {
|
||||
# Propagate setup warnings
|
||||
inherit (config.plugins.efmls-configs.setup) warnings;
|
||||
};
|
||||
imports = [
|
||||
{
|
||||
# Propagate setup warnings
|
||||
inherit (config.plugins.efmls-configs.setup) warnings;
|
||||
}
|
||||
|
||||
# TODO: added 2025-10-23, remove after 26.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = "efmls-configs";
|
||||
oldPackageName = "efmLangServer";
|
||||
packageName = "efm-langserver";
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue