Open losnappas opened 4 weeks ago
Yes!
Alright. Well, it seems for python the preferred method of installing an lsp is via pip
with virtualenv. E.g. pip install 'python-lsp-server[all]'
, which may explain why it's not in the devenv setup.
That said, that installs mypy lang server, not pyright, and I'm wondering whether installing these via nix is fine anyway, considering it should match the python version from nixpkgs (in theory). I'll do some testing going fwd
The problem is that pylsp
is in pkgs.python312Packages.python-lsp-server
, with the pythonXXXPackages
, so if python.package
is changed then I don't know how to refer to the correct lsp package.
The problem is that
pylsp
is inpkgs.python312Packages.python-lsp-server
, with thepythonXXXPackages
, so ifpython.package
is changed then I don't know how to refer to the correct lsp package.
Each python
package exposes a set of pkgs
for that version.
{ config, pkgs, ... }:
{
languages.python.enable = true;
languages.python.package = pkgs.python312;
packages = [
config.languages.python.package.pkgs.python-lsp-server
];
}
languages.python
doesn't install pyright (or any other python lsp), but e.g.languages.clojure
installs clojure-lsp. I'm wondering why that is.