mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 05:14:30 +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
|
||||
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
|
||||
)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue