Replies: 3 comments 1 reply
-
And I discovered a low-hanging fruit. Treesitter with all grammars adds about 100ms to startup time. But with only some grammars, startup time is almost inaffected. 🤔 Maybe there is even a few grammars, which take the most of load time (pkgs.vimPlugins.nvim-treesitter.withPlugins (p: with p; [
bash
c
go
lua
nix
python
typescript
])) |
Beta Was this translation helpful? Give feedback.
-
to iterate on startup time changes, I run nix build && nix run nixpkgs#vim-startuptime -- -vimpath ./result/bin/nvim | head -20 |
Beta Was this translation helpful? Give feedback.
-
Yep, I only have the parsers for languages I use regularly in my personal config. By the way, I find snacks.nvim profiler very useful for troubleshooting startup times. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, guys!
I like when computer is fast. Don't you? :)
But my neovim feels slow, when i run it. Half a second is a really noticeable delay.
My first idea was to employ lazy-loading of plugins, and I'm playing around it at the moment.
Beta Was this translation helpful? Give feedback.
All reactions