nvim-lua/completion-nvim

Performance issues with large codebases

Open

#203 geöffnet am 11. Sept. 2020

Auf GitHub ansehen
 (46 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Lua (77 Forks)batch import
help wantedimportant

Repository-Metriken

Stars
 (995 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I'm facing massive performance issues with a project that I'm working on which contains a lot of files. In this codebase completion is nearly unusable, causes lots of Lua & out of memory errors & crashes the native LSP.

One of the very common errors I get is this

Error executing luv callback:
...ovim/HEAD-7ba28b1/share/nvim/runtime/lua/vim/lsp/rpc.lua:558: cannot resume dead coroutine
Press ENTER or type command to continue

To make sure this was not the native LSP itself, I did the following:

  • Removed all the plugins
  • Installed all of them including nvim-lspconfig but without completion-nvim
  • Tested (with omni-completion setlocal omnifunc=v:lua.vim.lsp.omnifunc) -> everything ran very smoothly & fast
  • Installed completion-nvim
  • Tested -> performance issues all over the place (editor is locked, completion takes a lot of time, etc…)

I tried to see if coc.nvim has the same issues or no & I tried that & it worked fine too.

This is my completion.nvim config & this is my LSP config

Note, the same exact LSP config works fine without completion.nvim which also means that the TypeScript LSP is not the culprit too.

Contributor Guide