2023-10-21 00:49:53 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
programs.helix.languages = {
|
|
|
|
language = [
|
2023-10-29 04:35:51 +00:00
|
|
|
# {
|
|
|
|
# name = "bash";
|
|
|
|
# auto-format = false;
|
|
|
|
# formatter = {
|
|
|
|
# command = "${pkgs.shfmt}/bin/shfmt";
|
|
|
|
# args = ["-i" "2"];
|
|
|
|
# };
|
|
|
|
# }
|
2023-10-21 00:49:53 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
name = "java";
|
|
|
|
language-servers = [ "java-language-server" ];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
language-server = {
|
2023-10-29 04:35:51 +00:00
|
|
|
# bash-language-server = {
|
|
|
|
# command = "${pkgs.nodePackages.bash-language-server}/bin/bash-language-server";
|
|
|
|
# args = ["start"];
|
|
|
|
# };
|
2023-10-21 00:49:53 +00:00
|
|
|
|
|
|
|
clangd = {
|
|
|
|
command = "${pkgs.clang-tools}/bin/clangd";
|
|
|
|
clangd.fallbackFlags = ["-std=c++2b"];
|
|
|
|
};
|
|
|
|
|
|
|
|
nil = {
|
|
|
|
command = lib.getExe pkgs.nil;
|
|
|
|
config.nil.formatting.command = ["${lib.getExe pkgs.alejandra}" "-q"];
|
|
|
|
};
|
|
|
|
|
|
|
|
texlab = {
|
|
|
|
command = "${pkgs.texlab}/bin/texlab";
|
|
|
|
config.texlab.executable = "${pkgs.tectonic}/bin/tectonic";
|
|
|
|
config.texlab.build.onSave = true;
|
|
|
|
config.texlab.args = [
|
|
|
|
"-X"
|
|
|
|
"compile"
|
|
|
|
"%f"
|
|
|
|
"--keep-logs"
|
|
|
|
"--keep-intermediates"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
java-language-server = {
|
|
|
|
command = "${pkgs.java-language-server}/bin/java-language-server";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|