From cabac54c5bce14823f07299dcfd65a4bc682bfc5 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Tue, 11 Jan 2022 15:17:47 -0500 Subject: [PATCH] Set up forward search for Mac --- home/kakoune/kak-lsp.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/home/kakoune/kak-lsp.nix b/home/kakoune/kak-lsp.nix index 050ed8b..653a48c 100644 --- a/home/kakoune/kak-lsp.nix +++ b/home/kakoune/kak-lsp.nix @@ -107,11 +107,19 @@ let command = "texlab"; filetypes = [ "latex" ]; roots = [ ".git" "main.tex" "all.tex" ]; - # settings_section = "texlab"; - # settings.texlab.build = { - # args = [ "%f" "--synctex" "--keep-logs" "--keep-intermediates" "-Zsearch-path=${config.home.homeDirectory}/texmf" "-Zshell-escape" ]; - # executable = "tectonic"; - # }; + settings_section = "texlab"; + settings.texlab = { + build.executable = "latexmk"; + build.args = [ "-pdf" "-shell-escape" "-interaction=nonstopmode" "-synctex=1" "%f" ]; + + build.forwardSearchAfter = true; + build.onSave = true; + + forwardSearch = { + executable = "/Applications/Skim.app/Contents/SharedSupport/displayline"; + args = [ "-r" "-g" "%l" "%p" "%f" ]; + }; + }; }; nim = { command = "nimlsp";