fix(python): Depend on external Python LSP and its plugins

When bundled the LSP and its plugins couldn't find modules in the
environment.
This commit is contained in:
Jiří Štefka 2025-06-19 18:05:22 +02:00
parent 0231317ae1
commit 3b11fe7ae2
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
2 changed files with 2 additions and 2 deletions

View file

@ -131,7 +131,7 @@ with final.pkgs.lib; let
nil # nix LSP
nodePackages.bash-language-server # Bash language server
lua-language-server
(pkgs.python312.withPackages (python-pkgs: [ python-pkgs.python-lsp-server python-pkgs.python-lsp-ruff python-pkgs.pylsp-rope]))
# (pkgs.python312.withPackages (python-pkgs: [ python-pkgs.python-lsp-server python-pkgs.python-lsp-ruff python-pkgs.pylsp-rope python-pkgs.pylsp-mypy ]))
jsonnet-language-server
];
in {

View file

@ -1,5 +1,5 @@
-- Exit if the language server isn't available
if vim.fn.executable('pylsp') ~= 1 then
if vim.fn.executable('pylsp') ~= 1 and vim.fn.executable('mypy') ~= 1 and vim.fn.executable('ruff') then
return
end