-
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
Really a large lag if insert after a brace '{' #2292
Comments
I'm quite sure this is related to things described in #2291. Can you do this:
" test.vim
set nocompatible
set runtimepath^=/path/to/vimtex
filetype plugin indent on
let g:vimtex_cache_root = '.'
silent edit empty.tex
for s:x in vimtex#kpsewhich#run('--all ls-R')
unsilent echo printf("file: '%s'", s:x)
endfor
quitall! |
I put the test.vim in a empty dir, and output are below:
|
Thanks. The output is not as expected, which is "good" in the sense that this may explain the issue. On my end, the output is similar to "file: '/path/ls-R'" on each line. If you do |
Oh, and the |
I hope this may be fixed now. Can you update, then do |
output:
Now all packages installed locally can be suggested by omni. Although the large lag still exists, it only appeared in the beginning I input something after '\documentclass{' and |
I don't experience the lag myself (at all!), so I would not mind figuring out what the problem is. Are you able to create a minimal example and explain the details of reproducing? Also, an updated profiling would be nice (please explain how you do it, though - it helps me to properly understand what I see). |
My minimal.vim: set nocompatible
let &runtimepath = '~/.vim/bundle/vimtex,' . &runtimepath
" let &runtimepath = '~/.vim/bundle/coc.nvim,' . &runtimepath
let &runtimepath .= ',~/.vim/bundle/vimtex/after'
" let &runtimepath .= ',~/.vim/bundle/coc.nvim/after'
filetype plugin indent on
syntax enable
let g:vimtex_view_general_viewer = 'SumatraPDF.exe' how to reproduce:
my output.log: Maybe it's just a performance issue specific to Windows |
Could you show the profile log with |
Hmm, ok, I can reproduce this. It is same with Vim and neovim in my test setup. The lag is caused by the Not sure what to do about this, right now. The |
My tests earlier were all with MikTeX. I now uninstalled MikTeX and installed TeXlive and now |
No, I installed only texlive. |
Well, then, ok. I don't know what else to do here. Sorry. :\ Could you try to reinstall texlive? I used a more or less minimal install - perhaps thats the problem? |
Maybe. I installed almost all packages :). Thank you for your hard working, close it. |
Thanks - feel free to open a similar/related issue if you're able to pinpoint more specifically how I could improve VimTeX. In the meantime, I hope it works well enough! |
Description
As the title said, inputing something after '{' will get a large lag. I test on both gvim(with coc.nvim) and neovim (with coc.nvim and nvim-cmp). I have a profile log to show you the problem:
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: