Improving Lazy Loading with Lazy.nvim #1955
ktunprasert
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I've been plagued recently by time-to-first-insert when using Avante.nvim because even though it lazy loads - it takes anywhere from 500ms to 900ms. After much experimentation I figured out my workflow is always to toggle first so these 2 lines have off-loaded the Avante kick off to ONLY when I need it.
return { "yetone/avante.nvim", - event = "VeryLazy", + cmd = { "AvanteToggle" }, + keys = { + { "<leader>at", "<Cmd>AvanteToggle<CR>", desc = "avante: toggle" }, + }, version = false, -- Never set this value to "*"! Never! opts = {} }Hopefully this helps anyone who is down the rabbit hole of trying to optimise their avante load times and thank you yetone for this awesome plugin.
Beta Was this translation helpful? Give feedback.
All reactions