Skip to content

Added inverse search and fixed deprecated diagnostic setting#80

Open
estrac wants to merge 1 commit intoLunarVim:latex-idefrom
estrac:latex-ide
Open

Added inverse search and fixed deprecated diagnostic setting#80
estrac wants to merge 1 commit intoLunarVim:latex-idefrom
estrac:latex-ide

Conversation

@estrac
Copy link
Copy Markdown

@estrac estrac commented Feb 24, 2024

No description provided.

Comment thread config.lua
vim.g.vimtex_view_method = "zathura"
-- Enable inverse search (set progpath to location of lvim executable)
vim.g.vimtex_callback_progpath = vim.fn.expand('$HOME/.local/bin/lvim')
vim.g.vimtex_quickfix_enabled = 0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious, why is this disabled by default for LunarVim? I would claim that the quickfix feature is very useful and quite well implemented in VimTeX. Is it because you are also loading texlab or something like that which gives the same functionality?

Copy link
Copy Markdown
Author

@estrac estrac Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a great question for @SingularisArt, who was the original author of the LaTeX config.lua for LunarVim. Both texlab and VimTeX are being loaded in the config file, so I would presume you're right -- LunarVim probably wants to support both packages.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool; I believe you still want to load the quickfix module even if you do use texlab. But you may want to disable the auto open feature. I.e., I would propose the following change:

-vim.g.vimtex_quickfix_enabled = 0
+vim.g.vimtex_quickfix_mode = 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants