Skip to content

Commit

Permalink
languages/python: add python-lsp-server
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf committed Sep 16, 2024
1 parent 576c82a commit a97ca0f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/plugins/languages/python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit a97ca0f

Please sign in to comment.