From 04861de924b90c3e82ff002427a6fc0c796a8426 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sun, 17 Nov 2024 14:06:19 -0800 Subject: [PATCH] update latex config to zathura --- lua/plugins/texlabconfig.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lua/plugins/texlabconfig.lua b/lua/plugins/texlabconfig.lua index 0d745fa..f23f1c1 100644 --- a/lua/plugins/texlabconfig.lua +++ b/lua/plugins/texlabconfig.lua @@ -4,12 +4,18 @@ return { dependencies = { "lervag/vimtex" }, config = function() -- vimtex - vim.g.vimtex_view_method = "skim" + vim.g.vimtex_view_method = "zathura" vim.g.vimtex_compiler_method = "tectonic" -- nvim-texlabconfig - local tex_preview_executable = "/Applications/Skim.app/Contents/SharedSupport/displayline" - local tex_preview_args = { "%l", "%p", "%f" } + 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", + "%p", + } local texlab_build_executable = "tectonic" local texlab_build_args = { "-X",