nix-config/users/tacocat/helix/languages.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

2023-10-21 00:49:53 +00:00
{
pkgs,
lib,
...
}: {
programs.helix.languages = {
language = [
2023-11-05 03:06:38 +00:00
{
name = "latex";
indent = {
tab-width = 2;
unit = "\t";
};
2023-10-21 00:49:53 +00:00
}
2024-01-27 21:26:53 +00:00
{
name = "c";
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
};
};
};
}