languages/python: add python-lsp-server

This commit is contained in:
NotAShelf 2024-09-13 19:19:17 +03:00
parent 4209e61be5
commit dcaf9ff567
No known key found for this signature in database
GPG key ID: AF26552424E53993

View file

@ -45,6 +45,21 @@
}
'';
};
python-lsp-server = {
package = pkgs.python-lsp-server;
lspConfig = ''
lspconfig.pylsp.setup{
capabilities = capabilities;
on_attach = default_on_attach;
cmd = ${
if isList cfg.lsp.package
then expToLua cfg.lsp.package
else ''{"${cfg.lsp.package}/bin/pylsp"}''
}
}
'';
};
};
defaultFormat = "black";