You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running stock Lazyvim. I disabled half the plugins, to no effect. Finally, I disabled treesitter and noticed a difference of almost 100ms startup time when opening a file nvim somefile.ts
Even then, when opening a file, I first see a black screen and only after that see the file contents popping up. It's visually noticable, that's how slow it is.
And still, even without treesitter, the Snacks picker file previews lag when scrolling to the list. They also take ~100ms to load.
I have installed the Helix editor and both opening files (with treesitter) and browsing the picker previews are very snappy and responsive.
I have the exact same issues on both my m-series macbook and my beefy Linux gaming PC. Same problem in iterm2, konsole, ghostty.
I've been troubleshooting and trying random optimization fixes for 10-15 hours in the last few weeks. It's very disappointing for an editor that is supposed to be "blazingly fast" to feel this sluggish, and to only get reasonable launch times disabling treesitter and basically all syntax highlighting.
What can I do? Is this a me problem or is neovim just... not that fast as people say?
Launching the same file with treesitter disabled, nothing else modified, only adding this line in plugins/disabled.lua: { "nvim-treesitter/nvim-treesitter", enabled = false },
Edit 2: I've updated treesitter-cli from latest version, updated all plugins to latest version, did TSUpdate, tried loading Treesitter more lazily, tried disabling Treesitter in Snacks preview window, etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Running stock Lazyvim. I disabled half the plugins, to no effect. Finally, I disabled treesitter and noticed a difference of almost 100ms startup time when opening a file
nvim somefile.tsEven then, when opening a file, I first see a black screen and only after that see the file contents popping up. It's visually noticable, that's how slow it is.
And still, even without treesitter, the Snacks picker file previews lag when scrolling to the list. They also take ~100ms to load.
I have installed the Helix editor and both opening files (with treesitter) and browsing the picker previews are very snappy and responsive.
I have the exact same issues on both my m-series macbook and my beefy Linux gaming PC. Same problem in iterm2, konsole, ghostty.
I've been troubleshooting and trying random optimization fixes for 10-15 hours in the last few weeks. It's very disappointing for an editor that is supposed to be "blazingly fast" to feel this sluggish, and to only get reasonable launch times disabling treesitter and basically all syntax highlighting.
What can I do? Is this a me problem or is neovim just... not that fast as people say?
My full config:
https://github.com/laurensdc/dotfiles/tree/main/.config/nvim
Edit: some more information from Lazy Profiler.
Launching a file with treesitter enabled:
Launching the same file with treesitter disabled, nothing else modified, only adding this line in
plugins/disabled.lua:{ "nvim-treesitter/nvim-treesitter", enabled = false },Edit 2: I've updated treesitter-cli from latest version, updated all plugins to latest version, did
TSUpdate, tried loading Treesitter more lazily, tried disabling Treesitter in Snacks preview window, etc.Beta Was this translation helpful? Give feedback.
All reactions