diff --git a/hosts/randolph/home.nix b/hosts/randolph/home.nix index 71e6f07..db0950e 100644 --- a/hosts/randolph/home.nix +++ b/hosts/randolph/home.nix @@ -206,6 +206,11 @@ rec { programs.zathura = { enable = true; + options = { + selection-clipboard = "clipboard"; + synctex = "true"; + synctex-editor-command = "texlab inverse-search -i %{input} -l %{line}"; + }; }; programs.pandoc = { enable = true; }; diff --git a/snippets/kakoune/kak-lsp.toml b/snippets/kakoune/kak-lsp.toml index 61f5a5a..677bda8 100644 --- a/snippets/kakoune/kak-lsp.toml +++ b/snippets/kakoune/kak-lsp.toml @@ -392,6 +392,8 @@ command = "texlab" # # Preview configuration for zathura with SyncTeX search. # For other PDF viewers see https://github.com/latex-lsp/texlab/wiki/Previewing +build.forwardSearchAfter = true +build.onSave = true forwardSearch.executable = "zathura" forwardSearch.args = [ "%p",