Open JulioHC00 opened 1 month ago
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.
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...
Steps to reproduce
Your "steps to reproduce" do not contain a minimal init.lua
file. An example of such a file is this:
-- 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 :scriptname
, it will give a reasonable description of what plugins you have. Then you can disable them one by one.
To copy to clipboard use
:let @+=execute('scriptname')
I'd guess this comes from nvim-lspconfig
, you may disable the inlay hints like this https://github.com/LazyVim/LazyVim/discussions/3191#discussioncomment-9467691
I figured it out.
This is indeed TexLab related.
The related settings are texlab.inlayHints.labelDefinitions
and texlab.inlayHints.labelReferences
, see https://github.com/latex-lsp/texlab/wiki/Configuration.
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