bubbly.nvim icon indicating copy to clipboard operation
bubbly.nvim copied to clipboard

Slow vim startup with large files

Open datwaft opened this issue 4 years ago • 3 comments

This also seems to drastically slow down nvim startup with larger files, on the order of seconds for files with thousands of lines

Originally posted by @crides in https://github.com/datwaft/bubbly.nvim/issues/104#issuecomment-846458949

datwaft avatar Jul 29 '21 15:07 datwaft

This may be fixed with the refactor I am doing to fix some other problems, it may need testing.

datwaft avatar Jul 29 '21 15:07 datwaft

hi, what is the status with regards to this issue?

darzok0914 avatar Dec 08 '21 09:12 darzok0914

hi, what is the status with regards to this issue?

This is probably caused by the creation of the highlights for the statusline, as every possible combination is created at once at startup.

There was a try to fix the creation of so many highlights, but it didn't work properly (#104).

Because of that I have tried to continue with the planned refactor, which has the following planned enhancements:

  • only create the highlights needed
  • custom bubble as functions
  • different statusline per buffer depending on filetype

I haven't had much time to continue with the refactor because I began to work at the same time that I am finishing my degree.

When I get confortable enough with my time I will continue with the refactor, as it is very time consuming.

Meanwhile you or someone else can create a pull request to fix #104, which is probably the cause of this issue.

datwaft avatar Dec 08 '21 13:12 datwaft