mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-28 03:59:49 +01:00
languages/python: add python-lsp-server
This commit is contained in:
parent
4209e61be5
commit
dcaf9ff567
1 changed files with 15 additions and 0 deletions
|
@ -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