-
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
Can one use the default map K (vimtex-doc-package) to shows tizkzlibrary #2480
Comments
Hmm, interesting question. The functionality relies on a very simple mapping from package name to documentation url. If we can have a similar simple mapping for tikz packages, then I believe it should be easy. What's the url for the docs for the |
I've made an initial attempt at this. Please test. Notice that in many cases, the library is part of the core Let me know if you find edge cases, I'll try to handle them. |
Thank you lervag~! It works perfctly well~! Here is one minor issue that we still can live with. This is the same for the \package{} case. If
Then when the cursor over amsmath,
The same for \usetikzlibrary{} command, where one has to have one lib per line. I have transformed my tex document to one lib/package per line in order to check the document easily Thanks a lot for your great work and prompt help~! |
Great, I'm glad to hear it!
No, that's not correct. Or, at least, this works as expected for me. With % cursor
% |
\usepackage{ams|math,mathtools} where % cursor
% |
\usepackage{amsmath,math|tools}
My pleasure :) |
Thank you lervag, it indeed works~! I can put multiple packages back in one command now. :-)
Thanks a lot~! |
Glad to hear it! |
I have been using the following default map to view the package pdf files:
which is super convenient~!
Here are few lines in the preamble of the tex file:
When my cursor is on
tikz
and after hittingK
in normal mode, I can open the package pdf filefor tikz. But when my cursor is on
hobby
, I would like to use the same mappingK
to open thepackage document for hobby.
Would it be possible? Thanks a lot~!
The text was updated successfully, but these errors were encountered: