Skip to content

Reduce delay of completion  #1885

@lantyn

Description

@lantyn

Is your feature request related to a problem? Please describe it.
When a completion invokes kpsewhich there is usually a noticeable delay for the first time. Setting g:vimtex_include_search_enabled = 0 is only a compromise:

  • you lose access to, for example, manually installed packages and master bib database under your local texmf.
  • when used together with autocompletion plugins (I tried coc-vimtex), kpsewhich is still triggered and causes delay.

As a workaround, I turned off vimtex completion completely and used texlab LSP to provide the completion feature.

Describe the solution you'd like
Maybe exploiting the async feature of vim8 and neovim to run kpsewhich asynchronously could reduce the delay.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions