Skip to content
Snippets Groups Projects
Commit ea8fbd06 authored by Luke Naylor's avatar Luke Naylor
Browse files

Tweak zed settings to build on save

parent aab45efb
No related branches found
No related tags found
No related merge requests found
{
"lsp": {
"texlab": {
"settings": {
"lsp": {
"texlab": {
"diagnostics": {
"ignoredPatterns": ["Duplicate"]
}
"settings": {
"texlab": {
"build": {
"executable": "podman-compose",
"args": ["-f", "../compose.yaml", "run", "latexmk"]
},
"diagnostics": {
"ignoredPatterns": ["Duplicate"]
}
}
}
}
}
}
}
}
[
{
"label": "Forward Search",
"command": "zathura --synctex-forward \"$ZED_ROW:$ZED_COLUMN:$ZED_FILE\" -x \".zed/inverse.sh %{input} %{line}\" tex/main.pdf",
"allow_concurrent_runs": true,
"reveal": "never"
}
{
"label": "Forward Search",
"command": "zathura --synctex-forward \"$ZED_ROW:$ZED_COLUMN:$ZED_FILE\" -x 'zed %{input}:%{line}' ${ZED_WORKTREE_ROOT}/tex/main.pdf",
"allow_concurrent_runs": true,
"reveal": "never"
},
{
"label": "project build",
"command": "podman-compose -f ${ZED_WORKTREE_ROOT}/compose.yaml run latexmk-watch",
"allow_concurrent_runs": false,
"tags": ["latex-build"]
}
]
......@@ -9,6 +9,32 @@ services:
target: /root/workdir/
entrypoint: ["/usr/bin/bash", "-i"]
stdin_open: true # docker run -i
tty: true # docker run -t
tty: true # docker run -t
privileged: true
user: "${UID}:${GID}"
latexmk-watch:
build:
context: ./.devcontainer
volumes:
- type: bind
source: .
target: /root/workdir/
entrypoint: ["latexmk", "-synctex=1", "-pvc"]
stdin_open: true # docker run -i
tty: true # docker run -t
privileged: true
user: "${UID}:${GID}"
working_dir: /root/workdir/tex/
latexmk:
build:
context: ./.devcontainer
volumes:
- type: bind
source: .
target: /root/workdir/
entrypoint: ["latexmk", "-synctex=1"]
stdin_open: true # docker run -i
tty: true # docker run -t
privileged: true
user: "${UID}:${GID}"
working_dir: /root/workdir/tex/
......@@ -8,5 +8,4 @@ $pdf_mode = 1;
$pdflatex = 'lualatex -shell-escape -interaction=nonstopmode %O %S';
$max_repeat = 8;
$use_make_for_missing_files = 1;
$do_cd = 1;
$aux_dir = 'aux_files';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment