From 5649da4647543b1bc976bc079a6a19339d883c2b Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sun, 17 Nov 2024 14:50:40 -0800 Subject: [PATCH] switch latex to use sioyek --- lua/plugins/texlabconfig.lua | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lua/plugins/texlabconfig.lua b/lua/plugins/texlabconfig.lua index f23f1c1..d710c2b 100644 --- a/lua/plugins/texlabconfig.lua +++ b/lua/plugins/texlabconfig.lua @@ -4,16 +4,21 @@ return { dependencies = { "lervag/vimtex" }, config = function() -- vimtex - vim.g.vimtex_view_method = "zathura" + vim.g.vimtex_view_method = "sioyek" vim.g.vimtex_compiler_method = "tectonic" -- nvim-texlabconfig local tex_preview_executable = "zathura" local tex_preview_args = { - "--synctex-editor-command", - [[nvim-texlabconfig -file '%%%{input}' -line %%%{line} -server ]] .. vim.v.servername, - "--synctex-forward", - "%l:1:%f", + "--reuse-window", + "--execute-command", + "toggle_synctex", -- Open Sioyek in synctex mode. + "--inverse-search", + [[nvim-texlabconfig -file %%%1 -line %%%2 -server ]] .. vim.v.servername, + "--forward-search-file", + "%f", + "--forward-search-line", + "%l", "%p", } local texlab_build_executable = "tectonic" -- 2.47.0