Compare commits

..

1 commit

Author SHA1 Message Date
281c89ffe3
languages/python: add basedpyright LSP 2024-09-13 16:56:49 +03:00

View file

@ -14,7 +14,7 @@
cfg = config.vim.languages.python; cfg = config.vim.languages.python;
defaultServer = "basedpyright"; defaultServer = "pyright";
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.basedpyright.setup{ lspconfig.pyright.setup{
capabilities = capabilities; capabilities = capabilities;
on_attach = default_on_attach; on_attach = default_on_attach;
cmd = ${ cmd = ${
@ -45,21 +45,6 @@
} }
''; '';
}; };
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";