Skip to content

Commit

Permalink
plugins/lsp: remove unused generic extraPackages behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Nov 23, 2023
1 parent f95ace9 commit c68f2d6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions plugins/lsp/helpers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
description ? "Enable ${name}.",
serverName ? name,
package ? pkgs.${name},
extraPackages ? {},
cmd ? (cfg: null),
settings ? (cfg: cfg),
settingsOptions ? {},
Expand Down Expand Up @@ -116,12 +115,9 @@
mkIf cfg.enable
{
extraPackages =
(
optional
(cfg.installLanguageServer && (package != null))
cfg.package
)
++ (mapAttrsToList (name: _: cfg."${name}Package") extraPackages);
optional
(cfg.installLanguageServer && (package != null))
cfg.package;

plugins.lsp.enabledServers = [
{
Expand Down

0 comments on commit c68f2d6

Please sign in to comment.