Skip to content

Really a large lag if insert after a brace '{' #2292

@RnYi

Description

@RnYi

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:

FUNCTIONS SORTED ON TOTAL TIME
count  total (s)   self (s)  function
   30   4.249953   0.001727  coc#api#call()
   16   4.241497   0.000218  213()
    6   4.240878   0.003201  vimtex#complete#omnifunc()
    3   4.237677   0.000034  176()
    3   4.237643   0.000061  177()
    3   4.237582   0.004454  <SNR>87_get_texmf_candidates()
    6   4.233127   0.000816  vimtex#kpsewhich#run()
    6   4.220623   0.003417  vimtex#jobs#capture()
    6   4.214402   0.000117  vimtex#jobs#vim#capture()
    6   4.214286   0.007702  <SNR>128_vim_win_capture()
    1   0.028680   0.000021  <SNR>29_SyncAutocmd()
    1   0.028658   0.000027  coc#rpc#request()
    1   0.028619   0.028517  <SNR>32_request()
    8   0.015526   0.000466  193()
    8   0.008081   0.000194  vimtex#delim#get_current()
    8   0.007887   0.007030  <SNR>89_get_delim()
   12   0.007655             vimtex#paths#pushd()
   28   0.007067   0.004796  lightline#link()
    9   0.006729   0.003608  216()
   36   0.005851   0.000697  <SNR>29_Autocmd()

FUNCTIONS SORTED ON SELF TIME
count  total (s)   self (s)  function
    1   0.028619   0.028517  <SNR>32_request()
    6   4.214286   0.007702  <SNR>128_vim_win_capture()
   12              0.007655  vimtex#paths#pushd()
    8   0.007887   0.007030  <SNR>89_get_delim()
   28   0.007067   0.004796  lightline#link()
    3   4.237582   0.004454  <SNR>87_get_texmf_candidates()
   12              0.004277  vimtex#paths#popd()
    8              0.003722  192()
    9   0.006729   0.003608  216()
   36   0.003717   0.003478  <SNR>32_notify()
    6   4.220623   0.003417  vimtex#jobs#capture()
    6   4.240878   0.003201  vimtex#complete#omnifunc()
    3   0.002968   0.002896  coc#util#get_complete_option()
    8              0.002750  vimtex#syntax#stack()
   12   0.002704   0.002574  <SNR>37_Highlight_Matching_Pair()
    1   0.002271   0.002199  lightline#highlight()
   30   4.249953   0.001727  coc#api#call()
    2   0.001819   0.001575  <SNR>25_xkb_switch()
    1              0.001125  coc#util#echo_messages()
    6   0.001318   0.001018  lightline#onetab()

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Do you use a latexmkrc file?

No

VimtexInfo

System info:
  OS: RANY-PC (Microsoft Windows 10 רҵ°æ)
  Vim version: VIM 8.2 (1-3491)
  Has clientserver: true
  Servername: GVIM

VimTeX project: test
  base: test.tex
  root: C:\Users\RanY\Desktop\OtherProjects\MyTheses\GraduationThesis
  tex: C:\Users\RanY\Desktop\OtherProjects\MyTheses\GraduationThesis\test.tex
  main parser: current file
  document class: 
  packages: article
  compiler: latexmk
    engine: -xelatex
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    build_dir: .tmp
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: General
  qf method: LaTeX logfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions