switch latex to use sioyek #36

Merged
softinio merged 1 commit from push-wplxxnwlpvzu into main 2024-11-17 16:13:50 -08:00
Showing only changes of commit 5649da4647 - Show all commits

View file

@ -4,16 +4,21 @@ return {
dependencies = { "lervag/vimtex" }, dependencies = { "lervag/vimtex" },
config = function() config = function()
-- vimtex -- vimtex
vim.g.vimtex_view_method = "zathura" vim.g.vimtex_view_method = "sioyek"
vim.g.vimtex_compiler_method = "tectonic" vim.g.vimtex_compiler_method = "tectonic"
-- nvim-texlabconfig -- nvim-texlabconfig
local tex_preview_executable = "zathura" local tex_preview_executable = "zathura"
local tex_preview_args = { local tex_preview_args = {
"--synctex-editor-command", "--reuse-window",
[[nvim-texlabconfig -file '%%%{input}' -line %%%{line} -server ]] .. vim.v.servername, "--execute-command",
"--synctex-forward", "toggle_synctex", -- Open Sioyek in synctex mode.
"%l:1:%f", "--inverse-search",
[[nvim-texlabconfig -file %%%1 -line %%%2 -server ]] .. vim.v.servername,
"--forward-search-file",
"%f",
"--forward-search-line",
"%l",
"%p", "%p",
} }
local texlab_build_executable = "tectonic" local texlab_build_executable = "tectonic"