-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable adding figure caption after \ref{} #3009
Comments
I'm pretty sure, but not entirely, this is something caused by texlab. So I'm also quite sure you are using texlab as an LSP. But it's hard to know, because I don't know anything about your config...
Your "steps to reproduce" do not contain a minimal -- NOTE: Use the correct path to VimTeX in the following two lines!
vim.opt.runtimepath:prepend "~/.local/plugged/vimtex"
vim.opt.runtimepath:append "~/.local/plugged/vimtex/after"
vim.cmd [[filetype plugin indent on]]
vim.g.vimtex_cache_root = "."
vim.g.vimtex_cache_persistent = false |
Try running To copy to clipboard use
|
I'd guess this comes from |
I figured it out. This is indeed TexLab related. The related settings are |
Description
I'm sorry if this isn't something that VimTex does, but I can't think of any other plugin that may be doing this. Whenever I write \ref{fig:blahblah} I immediately get the caption added after it as a kind of ghost text. It's just there to be seen, but won't appear in the document. Just like below.
This is being quite buggy for me, and I'd like to disable it. I've tried disabling concealing, but it remains there, and I can't find anything in the docs to help me.
Steps to reproduce
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: