editor/helix: config for python

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-04-30 00:33:56 +03:00
parent 9eca8b59d3
commit 3bf0d20c63

View File

@ -66,6 +66,10 @@ in {
markdown-oxide.command = getExe pkgs.markdown-oxide;
# nil.command = getExe pkgs.nil;
nixd.command = getExe pkgs.nixd;
pyright.command = getExe pkgs.pyright;
pyright.args = ["-"];
ruff.command = getExe pkgs.ruff;
ruff.args = ["server"];
# rust-analyzer.command = getExe pkgs.rust-analyzer;
# texlab.command = getExe pkgs.texlab;
tinymist.command = getExe pkgs.tinymist;
@ -111,6 +115,20 @@ in {
# language-servers = ["rust-analyzer"];
# formatter.command = getExe pkgs.rustfmt;
# }
{
name = "python";
auto-format = true;
language-servers = [
{
name = "ruff";
only-features = ["format" "diagnostics"];
}
{
name = "pyright";
except-features = ["format" "diagnostics"];
}
];
}
];
};
};