2023-10-21 00:49:53 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
programs.helix.languages = {
|
|
|
|
language = [
|
2023-11-05 03:06:38 +00:00
|
|
|
{
|
|
|
|
name = "latex";
|
2023-11-29 03:48:18 +00:00
|
|
|
indent = {
|
|
|
|
tab-width = 2;
|
|
|
|
unit = "\t";
|
|
|
|
};
|
2023-10-21 00:49:53 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
language-server = {
|
|
|
|
nil = {
|
|
|
|
config.nil.formatting.command = ["${lib.getExe pkgs.alejandra}" "-q"];
|
|
|
|
};
|
|
|
|
|
|
|
|
texlab = {
|
2023-11-05 02:44:54 +00:00
|
|
|
config.texlab = {
|
2023-11-25 02:20:31 +00:00
|
|
|
forwardSearch.executable = "zathura";
|
|
|
|
forwardSearch.args = ["--synctex-forward" "%l:1:%f" "%p"];
|
2023-11-05 02:44:54 +00:00
|
|
|
build = {
|
2023-11-25 02:20:31 +00:00
|
|
|
executable = "tectonic";
|
2023-11-05 02:44:54 +00:00
|
|
|
onSave = true;
|
2023-11-25 02:20:31 +00:00
|
|
|
forwardSearchAfter = true;
|
2023-11-05 02:44:54 +00:00
|
|
|
auxDirectory = "build";
|
|
|
|
logDirectory = "build";
|
|
|
|
pdfDirectory = "build";
|
|
|
|
args = [
|
|
|
|
"-X"
|
|
|
|
"compile"
|
|
|
|
"%f"
|
2023-11-25 02:20:31 +00:00
|
|
|
"--synctex"
|
2023-11-05 02:44:54 +00:00
|
|
|
"--keep-logs"
|
|
|
|
"--keep-intermediates"
|
|
|
|
"--outdir"
|
|
|
|
"build"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-10-21 00:49:53 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|