From dcb4e6e71d378571ce46c01b8825bbb2b71a7342 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Thu, 13 Nov 2025 23:47:56 +0100 Subject: [PATCH] Fix vimtex backward search --- nvim/.config/nvim/lua/plugins/vimtex.lua | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/vimtex.lua b/nvim/.config/nvim/lua/plugins/vimtex.lua index c594513..e0ead15 100644 --- a/nvim/.config/nvim/lua/plugins/vimtex.lua +++ b/nvim/.config/nvim/lua/plugins/vimtex.lua @@ -1,9 +1,6 @@ return { "lervag/vimtex", - ft = { - "tex", - "bib" - }, + lazy = false, -- For backward search to work, :VimtexInverseSearch must always be available config = function() -- General configuration @@ -20,8 +17,7 @@ return { } } - -- TODO: Fix `VimTex: Viewer cannot find Zathura window ID` - vim.g.vimtex_view_method = 'zathura' + vim.g.vimtex_view_method = 'zathura_simple' vim.g.vimtex_quickfix_mode = 0 -- Concealment @@ -49,15 +45,5 @@ return { \ {'name': 'bm', 'mathmode': 1, 'argstyle': 'bold', 'conceal': 1}, \] ]]) - - -- Synctex configuration - - vim.g.vimtex_compiler_progname = 'nvr' - - local options = string.format( - '--reuse-window --inverse-search="nvr --servername %s +%%2 %%1" --forward-search-file @tex --forward-search-line @line @pdf', - vim.v.servername) - local command = string.format("let g:vimtex_view_general_options='%s'", options) - vim.cmd(command) end }