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:
parent
0231317ae1
commit
3b11fe7ae2
2 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ with final.pkgs.lib; let
|
||||||
nil # nix LSP
|
nil # nix LSP
|
||||||
nodePackages.bash-language-server # Bash language server
|
nodePackages.bash-language-server # Bash language server
|
||||||
lua-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
|
jsonnet-language-server
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
-- Exit if the language server isn't available
|
-- 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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue