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
\hyperref[
not behaving as \ref{
and not showing list of labels to cross-reference
#2730
Comments
Why did you link "custom-labelled-references" to http://example.com?
First: You are leaving out a lot of VERY important context here. I believe I can infer things correctly, but it would be much better if I did not need to make any assumptions about your issue. To be specific: "A dropdown should appear" is only right if you either 1) specify that you press e.g. Now, completion for Notice, there is a reason why the issue template asks for a minimal example that involves a minimal |
@lervag Thanks for the reply! I never had to press anything to open a completion drop down so I didn't know about that keybind at all before. Is it Vimtex-specific or something else? I do use coc.nvim when running NeoVim, but to the best of my understanding it should be disabled for non-C++ files. Tomorrow I will investigate a bit further. I was surprised to see this behaviour because otherwise I saw mentions of the |
Alright, it turns out that pressing Do you know of that plugin, or is it completely third-party? I found some mentions of the completion in VimTex's help file. But it looks like this issue should be reposted to that project instead? |
:)
It is not VimTeX specific, no. It is built-in to Vim and neovim. I believe, based on what you are writing, that you are not very aware of which features you are using that are built-in and which ones are provided by plugins. It also doesn't seem like you are fully aware of which plugins you are using. This makes it harder for me to help. I would strongly suggest reading the Vim user manual (
Good; as expected.
Yes, I believe the reason you don't get automatic completion is because the pattern used to trigger completion either lacks the https://github.com/neoclide/coc-vimtex/blob/master/src/index.js#LL19C1-L19C916 Compare this to similar regexes provided by VimTeX, e.g. this one: Lines 36 to 60 in 28c7104
So, to fix this, you need to get whomever is maintaining coc-vimtex to check if there is either a bug with the regex or if it lacks the |
Description
Reference label completion list does not open following
\hyperref[
(for custom-labelled references) even though\ref{
or\cref{
opens the list normally.Steps to reproduce
Navigate to the line indicated by
%
and start typing\ref{
or\cref{
, and\hyperref[
Expected behavior
A dropdown should appear for all three commands, like this:
Actual behavior
No drop-down is shown for arguments of the
\hyperref[
command.The code is valid nevertheless and the PDF otherwise generates normally:
Do you use a latexmkrc file?
Yes (but this should not be relevant to the issue).
VimtexInfo
The text was updated successfully, but these errors were encountered: