Python LSP setup
This commit is contained in:
parent
329671fb4e
commit
971b5c1c8d
1 changed files with 18 additions and 7 deletions
|
|
@ -1,9 +1,20 @@
|
||||||
{ pkgs, lib, config, ... }: {
|
{ pkgs, lib, config, ... }:
|
||||||
home.packages = [ pkgs.black pkgs.python3 ]
|
|
||||||
++ lib.optionals config.programs.helix.enable builtins.attrValues {
|
let
|
||||||
inherit (pkgs.python3Packages) python-lsp-server pyls-flake8 pyls-isort;
|
py = pkgs.python3;
|
||||||
} ++ lib.optionals config.programs.kakoune.enable builtins.attrValues {
|
pyPkgs = py.pkgs;
|
||||||
inherit (pkgs.python3Packages) python-lsp-server pyls-flake8 pyls-isort;
|
in
|
||||||
};
|
{
|
||||||
|
home.packages = [ py pyPkgs.black ]
|
||||||
|
++ lib.optionals config.programs.helix.enable ([
|
||||||
|
pyPkgs.python-lsp-server
|
||||||
|
pyPkgs.pyls-flake8
|
||||||
|
pyPkgs.pyls-isort
|
||||||
|
] ++ pyPkgs.python-lsp-server.optional-dependencies.all)
|
||||||
|
++ lib.optionals config.programs.kakoune.enable ([
|
||||||
|
pyPkgs.python-lsp-server
|
||||||
|
pyPkgs.pyls-flake8
|
||||||
|
pyPkgs.pyls-isort
|
||||||
|
] ++ pyPkgs.python-lsp-server.optional-dependencies.all);
|
||||||
programs.neovim.withPython3 = true;
|
programs.neovim.withPython3 = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue