plugins/efmls: use efmLangServerPackage option

This commit is contained in:
Austin Horstman 2024-09-14 11:07:11 -05:00
parent 9832cb86fb
commit da1a10d0f3
No known key found for this signature in database
2 changed files with 12 additions and 1 deletions

View file

@ -20,6 +20,10 @@ in
];
};
efmLangServerPackage = lib.mkPackageOption pkgs "efm-langserver" {
nullable = true;
};
externallyManagedPackages = lib.mkOption {
type = with lib.types; either (enum [ "all" ]) (listOf str);
description = ''
@ -151,6 +155,6 @@ in
extraOptions.settings.languages = setupOptions;
};
extraPackages = [ pkgs.efm-langserver ] ++ (map (v: cfg.toolPackages.${v}) nixvimPkgs.right);
extraPackages = [ cfg.efmLangServerPackage ] ++ (map (v: cfg.toolPackages.${v}) nixvimPkgs.right);
};
}

View file

@ -145,4 +145,11 @@
};
};
};
no-packages = {
plugins.efmls-configs = {
enable = true;
efmLangServerPackage = null;
};
};
}