2

How do i troubleshoot what is causing below problem.

Problem:

neovim unresponsive for several seconds (10-30 seconds) for any keys

Setup:

Neovim 0.9.2 and neovim nightly

  • workspace with > 900 files
  • C++ files
  • Clangd with Neovim NativeLSP using LazyVim

My triage so far

  • Disabled LSP (using LspStop)
  • no issue with non C++ file
  • No issues with smaller projects (<50 files)
Vivian De Smedt
  • 16,336
  • 3
  • 18
  • 37
Zhivaji
  • 21
  • 1
  • Try to do profiling while saving files. It is a common issue unfortentently. :help profile – eyal karni Aug 24 '23 at 22:44
  • 1
    Try How to debug my vimrc as a tip to identify the cause of slowness – D. Ben Knoble Aug 25 '23 at 17:57
  • It is difficult to help you without being able to reproduce the problem. I'm using Coc with coc-clangd on a very large projects (over 6500 files) and it works fine. I suspect that you have multiple plugin that are conflicting each other. Are you using a distribution LazyVim or simply the Lazy plugin manager? – Vivian De Smedt Aug 29 '23 at 09:15
  • If you are using LazyVim did you use the CLangd page to add support for Cpp? Did you try to uninstall some of the parts (e.g. nvim-treesitter, clangd_extensions, nvim-dap, nvim-lspconfig)? which one is creating the problem? – Vivian De Smedt Aug 29 '23 at 09:21

0 Answers0