mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/lsp: remove unused generic extraPackages behaviour
This commit is contained in:
parent
f95ace94b2
commit
c68f2d6270
1 changed files with 3 additions and 7 deletions
|
@ -9,7 +9,6 @@
|
||||||
description ? "Enable ${name}.",
|
description ? "Enable ${name}.",
|
||||||
serverName ? name,
|
serverName ? name,
|
||||||
package ? pkgs.${name},
|
package ? pkgs.${name},
|
||||||
extraPackages ? {},
|
|
||||||
cmd ? (cfg: null),
|
cmd ? (cfg: null),
|
||||||
settings ? (cfg: cfg),
|
settings ? (cfg: cfg),
|
||||||
settingsOptions ? {},
|
settingsOptions ? {},
|
||||||
|
@ -116,12 +115,9 @@
|
||||||
mkIf cfg.enable
|
mkIf cfg.enable
|
||||||
{
|
{
|
||||||
extraPackages =
|
extraPackages =
|
||||||
(
|
optional
|
||||||
optional
|
(cfg.installLanguageServer && (package != null))
|
||||||
(cfg.installLanguageServer && (package != null))
|
cfg.package;
|
||||||
cfg.package
|
|
||||||
)
|
|
||||||
++ (mapAttrsToList (name: _: cfg."${name}Package") extraPackages);
|
|
||||||
|
|
||||||
plugins.lsp.enabledServers = [
|
plugins.lsp.enabledServers = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue