Compare commits

..

3 commits

View file

@ -14,7 +14,7 @@
cfg = config.vim.languages.python; cfg = config.vim.languages.python;
defaultServer = "pyright"; defaultServer = "basedpyright";
servers = { servers = {
pyright = { pyright = {
package = pkgs.pyright; package = pkgs.pyright;
@ -34,7 +34,7 @@
basedpyright = { basedpyright = {
package = pkgs.basedpyright; package = pkgs.basedpyright;
lspConfig = '' lspConfig = ''
lspconfig.pyright.setup{ lspconfig.basedpyright.setup{
capabilities = capabilities; capabilities = capabilities;
on_attach = default_on_attach; on_attach = default_on_attach;
cmd = ${ cmd = ${
@ -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"; defaultFormat = "black";