nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
16.69k stars 16.61k forks source link

Very slow with large C++ files in insert mode. #950

Open mwcarlis opened 1 month ago

mwcarlis commented 1 month ago

Describe the bug:

I'm having issues with neovim being very slow when I am in insert mode while working on large C++ files. I also noticed that it is using the wrong indentation in these large file. The file I have here is ~21k lines of C++.

To Reproduce

  1. Open a large C++ file. Go into "insert" mode. Subsequent user input will seem very slow/delayed.
  2. If I disable treesitter issue seems to go away...

Desktop

Neovim Version

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1692716794
mwcarlis commented 1 month ago

This might just be a treesitter issues so I'm sorry to start here, but if I need to take it over to them I can do that.

dam9000 commented 1 month ago

Yes, bring it up to Treesitter, nothing kickstart can do about it.