mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-03 05:44:31 +02:00
plugins/nvim-lsp: fix pylsp error when no plugins set (#253)
This commit is contained in:
parent
5a69dc4712
commit
720d55e999
1 changed files with 27 additions and 25 deletions
|
@ -412,6 +412,7 @@ in {
|
||||||
extraPackages = with cfg.settings; let
|
extraPackages = with cfg.settings; let
|
||||||
isNotNullAndEnabled = x: (!isNull x) && x.enabled;
|
isNotNullAndEnabled = x: (!isNull x) && x.enabled;
|
||||||
in
|
in
|
||||||
|
optionals (!isNull cfg.settings.plugins) (
|
||||||
lists.flatten (map
|
lists.flatten (map
|
||||||
(
|
(
|
||||||
pluginName: (
|
pluginName: (
|
||||||
|
@ -440,6 +441,7 @@ in {
|
||||||
++ (
|
++ (
|
||||||
optional (isNotNullAndEnabled plugins.pylsp_mypy)
|
optional (isNotNullAndEnabled plugins.pylsp_mypy)
|
||||||
pkgs.python3Packages.pylsp-mypy
|
pkgs.python3Packages.pylsp-mypy
|
||||||
|
)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue