plugins/nvim-lsp: fix pylsp error when no plugins set (#253)

This commit is contained in:
Gaétan Lepage 2023-03-14 15:13:27 +01:00 committed by GitHub
parent 5a69dc4712
commit 720d55e999
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -412,6 +412,7 @@ in {
extraPackages = with cfg.settings; let
isNotNullAndEnabled = x: (!isNull x) && x.enabled;
in
optionals (!isNull cfg.settings.plugins) (
lists.flatten (map
(
pluginName: (
@ -440,6 +441,7 @@ in {
++ (
optional (isNotNullAndEnabled plugins.pylsp_mypy)
pkgs.python3Packages.pylsp-mypy
)
);
};
}