editor/helix: config for python
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -66,6 +66,10 @@ in {
|
|||||||
markdown-oxide.command = getExe pkgs.markdown-oxide;
|
markdown-oxide.command = getExe pkgs.markdown-oxide;
|
||||||
# nil.command = getExe pkgs.nil;
|
# nil.command = getExe pkgs.nil;
|
||||||
nixd.command = getExe pkgs.nixd;
|
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;
|
# rust-analyzer.command = getExe pkgs.rust-analyzer;
|
||||||
# texlab.command = getExe pkgs.texlab;
|
# texlab.command = getExe pkgs.texlab;
|
||||||
tinymist.command = getExe pkgs.tinymist;
|
tinymist.command = getExe pkgs.tinymist;
|
||||||
@ -111,6 +115,20 @@ in {
|
|||||||
# language-servers = ["rust-analyzer"];
|
# language-servers = ["rust-analyzer"];
|
||||||
# formatter.command = getExe pkgs.rustfmt;
|
# formatter.command = getExe pkgs.rustfmt;
|
||||||
# }
|
# }
|
||||||
|
{
|
||||||
|
name = "python";
|
||||||
|
auto-format = true;
|
||||||
|
language-servers = [
|
||||||
|
{
|
||||||
|
name = "ruff";
|
||||||
|
only-features = ["format" "diagnostics"];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "pyright";
|
||||||
|
except-features = ["format" "diagnostics"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user