-
Notifications
You must be signed in to change notification settings - Fork 52
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
Complete on my macro definitions (e.g., as if they were a \ref) #1032
Comments
For some commands, it is already possible (see
Definitely not a stupid question ^^ |
Thanks a lot for your answer!! I'll keep an eye in the PR then, and I take note that I can do that with citations already. |
Thanks! |
@pfoerster Hi, thanks for your maintenance. |
@ROCKTAKEY Sure: https://github.com/latex-lsp/texlab/wiki/Configuration#texlabexperimentallabelreferencecommands It behaves like |
Thanks! |
This is a question, not a bug. But I am not sure if this is even possible (I am new to using LSP).
I have some macros that texlab sees (I followed #100), and the macros themselves are completed.
For example, I have this:
I would like that, after inserting
\qref{}
and when inside the{}
, I was offered completions (e.g., forsec:
,eq:
, etc) as I am offered when I write\ref
. Much like it happens, for example, witheqref
.The more general question is: is there a way to tell texlab to issue completions for a macro as if it were something else it already gives completions for?
(In case it matters, I am using Emacs with lsp-mode and lsp-latex).
And apologies if this is a stupid question. This is the sort of thing I can do with
company-reftex
(Emacs) by modifying thecompany-reftex-labels-regexp
variable, so it now also completes afterqref
, for example. But I might be completely confused here.The text was updated successfully, but these errors were encountered: