diff options
author | Camil Staps | 2021-06-18 20:02:08 +0200 |
---|---|---|
committer | Camil Staps | 2021-06-18 20:02:08 +0200 |
commit | ba38bf6df2aea788272cf298abac62839af88c2b (patch) | |
tree | 72cef728eb17336adb2ae498038ab6551402bd84 /vim/.latexmkrc | |
parent | Fix vim SwitchToFileOrOpen; take current directory into account (diff) |
Simplify synctex; use vim drop command instead of custom switch_to_file_or_open function
Diffstat (limited to 'vim/.latexmkrc')
-rw-r--r-- | vim/.latexmkrc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vim/.latexmkrc b/vim/.latexmkrc index a36a2ce..8ee0b76 100644 --- a/vim/.latexmkrc +++ b/vim/.latexmkrc @@ -13,8 +13,7 @@ $pdf_previewer .= 'zathura'; # -x for synctex: connect to the rpc socket, switch to the file and jump to the line $pdf_previewer .= ' -x "nvim --headless --cmd'; $pdf_previewer .= ' \'let skt=sockconnect(\\"pipe\\",\\"$SERVER\\",{\\"rpc\\":1})'; -# SwitchToFileOrOpen switches to a file or opens it if there is no window yet; see .vimrc -$pdf_previewer .= ' | call rpcrequest(skt,\\"nvim_command\\",\\"SwitchToFileOrOpen %{input}\\")'; +$pdf_previewer .= ' | call rpcrequest(skt,\\"nvim_command\\",\\"tab drop %{input}\\")'; $pdf_previewer .= ' | call rpcrequest(skt,\\"nvim_command\\",\\"%{line}\\")'; # mysteriously, we need `cd .` to fix the file name in the tabline $pdf_previewer .= ' | call rpcrequest(skt,\\"nvim_command\\",\\"cd .\\")'; |