Closed Addisonbean closed 1 month ago
Hey @Addisonbean, increasing update_debounce
may help, but I agree we need a better solution. I'll see what I can come up with.
Ok #613 adds the option to disable UI features for big files.
Wow, that was a fast turn around. Thanks!!
π Describe the bug
When editing a file that's larger than around 250KiB, making edits in insert and normal mode become slow. The effect is much more dramatic as the file grows towards 500KiB, like the file I noticed this on. This is much more annoying when in insert mode however as the text lags a lot while typing.
Adding
ui = { enabled = false }
to the settings fixes this, but as far as I'm aware there's no way to set this on a per-file basis.Ideally the editing speed could be fixed for larger files, but I think even a way to disable ui for certain files, ideally based on a user-defined function, would be a huge improvement over the current behavior.
Here's an example of a large file that causes a bad slow down in edit speed (it's around 450KiB): https://pastebin.com/C4khy3k3
Config
Environment