-
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
Add .tikz file completion for \input #2162
Comments
Also, compilation errors that happen inside this .tikz file seem to not trigger the quickfix window. This might be related, but I don't know for sure |
So, simply put: you want completion for
This is OK, but I would be glad if you could provide a minimal example of this. That is, a
No, this is not related. But I could consider looking into this if you open a new issue for it with a description of how to reproduce it. |
Exactly.
I tested this with the following files: set nocompatible
let &runtimepath = '~/.vim/plugged/vimtex,' . &runtimepath
let &runtimepath .= ',~/.vim/plugged/vimtex/after'
filetype plugin indent on
syntax enable My \documentclass{minimal}
\usepackage{tikz}
\begin{document}
\input{minimal.tikz}
\end{document} My \begin{tikzpicture}
\node at (0,0) {This is a test node};
\end{tikzpicture} I want |
I think this should work now, please test. |
It does not provide minimal.tikz for omnicomplete if I use |
It will only work if VimTeX recognizes that you use the |
I have the following in my config: au BufNewFile,BufRead *.tikz setlocal ft=tex nowrap (Maybe VimTeX could recognize |
Yes, but I believe it may require some more work. I.e., we need to consider how the VimTeX state should be initialized when loading VimTeX for tikz files. Could you open a new issue about this? |
Ah, VimTeX doesn't provide any |
Yes, at least open to discuss it. I think this could also be part of the same issue. |
As of now, if I am reading
vimtex/doc/vimtex.txt
Line 3657 in 5623fb4
.tex
files when\input
is written. However, I would love to see it searching for.tikz
files as well. I believe this is the normal way to include tikz files, e.g.I would love to see completion for this as well.
Please correct me if this is not the right way to do / there is completion for tikz files, just not for
\input
.Regards
Julian Hossbach
The text was updated successfully, but these errors were encountered: