Skip to content

Commit

Permalink
helix: add python lsp & formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Aug 22, 2024
1 parent 8a1e428 commit 310016e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions home/editors/helix/languages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@
auto-format = true;
formatter = deno "md";
}
{
name = "python";
language-servers = ["pyright"];
formatter = {
command = lib.getExe pkgs.black;
args = ["-" "--quiet" "--line-length 100"];
};
}
{
name = "typescript";
auto-format = true;
Expand Down Expand Up @@ -113,6 +121,18 @@
config.nil.formatting.command = ["${lib.getExe pkgs.alejandra}" "-q"];
};

pyright = {
command = "${pkgs.pyright}/bin/pyright-langserver";
args = ["--stdio"];
config = {
reportMissingTypeStubs = false;
analysis = {
typeCheckingMode = "basic";
autoImportCompletions = true;
};
};
};

typescript-language-server = {
command = lib.getExe pkgs.nodePackages.typescript-language-server;
args = ["--stdio"];
Expand Down

0 comments on commit 310016e

Please sign in to comment.