Open 945fc41467 opened 1 month ago
Using basic motion key lag on certain specific places when vimtex is activated …
You can reproduce it with your minimal example : …
I'm sorry if I'm daft, but the minimal example here that you claim should reproduce this is:
\documentclass{minimal}
\begin{document}
Hello world!
\begin{Definition}[Produit matriciel :]
Soient $A,█B \in M_{m;l}(\R)×M_{l;n}(\R)$, $A \cdot B =
\left(\sum_{k=1}^{l}{a_{i;k}\cdot b_{k;j}}\right)_{
{i\in\llbracket 1; m \rrbracket}\atop
{j\in\llbracket 1; n \rrbracket}}$
\end{Definition}
\end{document}
where █
indicates the initial cursor position. You are saying that moving the cursor with k
is ok, but moving it back down with j
is laggy. Did I understand correctly?
For the record: I can not reproduce this lag on my end.
That’s right. I tried with you example and I have the same behavior. I didn’t identify the logic in which move is laggy or not. It look rather random. But the navigation is very difficult like this.
Ok. So, the main approahc for helping you with this is to have you create a minimal configuration that reproduces this. But before we start doing that, can you do this:
:scriptnames
(I would prefer if you could paste the output verbatim in your reply instead of using a screenshot).:profile start profile.log
:profile func *
:profile file *
:profile pause
:qa!
profile.log
here.I may be able to figure out your problem from this output.
Description
Using basic motion key lag on certain specific places when vimtex is activated
For example ([ ] representing the position of the cursor) :
the switch between
[ ]
and[i]
is ok, but it lag in the reverse order.You can reproduce it with your minimal example :
Just try to navigate in the text with hjkl keys.
I tried with
let g:vimtex_matchparen_enabled = 0
. It doesn’t change anything. I addedlet loaded_matchparen = 1
. Still the same. The use of vim-matchup doesn’t change anything. There is no lag if vimtex is disabled.I use nvim, with neovide.
Here is my config:
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
For the moment I use default configuration. I am still trying to learn how it works
VimtexInfo