mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-12-29 14:12:23 +00:00
Compare commits
3 commits
281c89ffe3
...
dcaf9ff567
Author | SHA1 | Date | |
---|---|---|---|
dcaf9ff567 | |||
4209e61be5 | |||
96dc5e3220 |
1 changed files with 17 additions and 2 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue