Lightning Fast Neovim Startup Time! // Migrating to Lazy
Вставка
- Опубліковано 3 сер 2023
- Using Lazy changed the way I use my plugins and debug their operation. But most of all, it improved my loading times. Lazy is amazing, and I thought I'd share what it does and how to integrate it coming from other package managers.
LINKS AND TOOLS MENTIONED
▶ github.com/folke/lazy.nvim
MY FAVOURITE GEAR
* If you enjoy my content, using the links below will help me with a small commission, so thank you!
⌨️ My keyboard is the wonderful HHKB: amzn.to/3HwJG60
🔗 The HHKB is wired with a high quality coiled cable: amzn.to/3DCA87d
⌨️ Backup keyboard (for traveling mainly) - Nuphy Air60: amzn.to/3R3M7jz
🖥️ My ultra wide 49" monitor: amzn.to/3JbVThC
🎙️ Microphone - Shure MV7X: amzn.to/3kA7tZZ
🦾 Boom Arm - amzn.to/3ZmQgln
🎤 Audio Interface (for XLR microphones) - Focusrite Scarlett Solo: amzn.to/3Z3fBkQ
🦾 Heavy Duty Monitor Arm: amzn.to/3kKp7tS
🖱️ Mouse - MX Master 3: amzn.to/3DiZmaj
📷 Camera - ZVE10: amzn.to/3I1jfVS
🎥 Lens - Sigma 1.4 16mm: amzn.to/3BfFN15
CONSIDER SUPPORTING THIS CHANNEL
☕ Buy me a coffee: www.buymeacoffee.com/omerxx
🎷 60 day free Epidemic Music!: share.epidemicsound.com/w6zfxo
MY KEY LINKS
🍿 Subscribe: www.youtube.com/@devopstoolbo...
🌍 My website: omerxx.com
🗞️ Dev & Ops tools Telegram channel: t.me/espressops
🎙️ DevOps Topeaks Podcast: topeaks.buzzsprout.com
#neovim #debug #debugtips #devops #ops #productivity #dev #terminal #tmux #system #sysadmin #cloud #cli #ops #ricing #linux #macos #commandline #typing #keyboard #tutorial #beginner - Наука та технологія
Thanks for a nice video. If I'm not mistaken "\v" means "very magic", which according to vim's help, the "Use of '\v' means that after it, all ASCII characters except '0'-'9', 'a'-'z', 'A'-'Z' and '_' have special meaning...'. That's why you don't have to add a backslash before "(" and ")" in your regex.
Damn! Thanks for this! Totally missed this one.
My favorite comments are those I actually learn from 🙏
@@devopstoolbox 🙏
great content and I like the hands on using regular expressions for changing the configuration. Thanks for sharing!
I would love to watch how to set lazyvim from scratch and see what plugins will you use, great content!
Thanks!
I think you have my "from scratch" config here :)
If you want to see the full list check it out on my dotfiles under nvim: github.com/omerxx/dotfiles
every one of your videos is like a drug to me: hitting me straight to the heart: zellij, neovim and all the related tools! Thank you so much for improving our developer's experience!
Man what a feedback! Thank you for the kind words buddy!
It really does mean a lot to me.
I just switched to using the "lazy" plugin manager. Much nicer and quicker. Nice job on the video, very professional.
Great to hear! Thanks!
Wow, 200 ms already!? That's already so fast.
Switching from packer to Lazy cut my time down from 8 seconds to 1 second.
Other IDEs measure their startup up time in minutes, first just the startup minutes until the GUI appears then more minutes until it can do anything.
Totally!
Although with 8 seconds (even 1) I'd debug the startup process and see whats eating up resources. Maybe it's something you can upgrade / remove / find an alternative for!
This was the easiest migration I have ever done!! Thanks
🙏🏽
Good channel and content. In case of Neovim and Lazy you should start using Events. For example you need Nvim-cmp only when you start enter the text, so that use Event=‘InsertEnter’. The same for Telescope you don’t need it until you directly call it using cmd = ‘Telescope’ and so on. Actually my current Neovim takes 28 ms to startup based on the Lazy Profile. Also I completely removed rtp plugins at startup that usually takes from 5 to 8 ms.
Interesting. You'd rather optimize your startup time but slow down the time it takes to enter insert mode?
@@aleclowry7654 it does not affect on insert mode, because nvim-cmp starts in the background or in parallel, in addition it takes 15-20ms and that’s enough time to type 3-4 symbols, before the cmp menu will appear.
Very interesting, do you have a public configuration with events setup that I can look at? It can be super interesting to try and maybe even create a video on
Can you make a setup for Web development with React? Great video btw, your channel is amazing!
Thanks man! I'm pretty far from this stack so I don't think I have the expertise to share knowledge about it. That's one of the things I definitely want to take on learning when I find time.
Thanks for the kind words :)
@@devopstoolbox no problem, keep up the good work!
Great work! What's the beautiful tune in the background at 5:00?
If you still haven't found it I'll open the archive and search :) LMK
@@devopstoolboxHaven't found it yet. Thanks in advance
@@pumpkinjutsu1249 That's the one: ua-cam.com/video/ermsMN0y7CE/v-deo.html
@@devopstoolboxthank you!
what is the popup text area you are using to enter cmdline commands?
I think you’re referring to noice - github.com/folke/noice.nvim
in a substitute how to call the \v in regex, i want to learn more about this mode of substitution
This was actually pointed out to me by a viewer, this is from Vim's docs: "Vim search pattern can include the special sequence \v (very magic), and this will make every following character except a-zA-Z0-9 and '_' have special meaning."
buddy any plugin to get preview of excel files in neovim ? like we get in vscode will make it easier to not leave nvim for them.
Hey, you mean CSVs?
@@devopstoolbox yeah CSVs and if possible the xlsx too
@@niksingh710 So yeah I've used chrisbra/csv.vim a few times and for simple structures it's not bad. However, generally with CSV's I prefer something like q: github.com/harelba/q
do you use kickstarter config of tj?
Yes! Restarted my configuration with kickstart just so I can move to lua rather easily but still have all the nice LSP configs / telescope etc.
This video specifically is about taking kickstart's packer and migrating it to lazy
Please, where can I found your final config of neovim?
Just pushed updates, check it out: github.com/omerxx/dotfiles/blob/master/nvim/init.lua
May I know the keyboard that you are using?
Of course! HHKB, 4 years old.
This one was lubed last year and has O-rings on the switches 😉
i like your one lua config file 📁
mine was 48ms with 31 plugins installed
just timed mine. 45.143 and i thought i was bloated with a bunch of stuff i didn't need.
Nice! you manage to clean up stuff?
Super fast regardless...
these things would be so much better to follow in a blog
Yep, blogging used to be my thing, but I'm tired of writing, and it's really hard to get to an audience, whereas videos are natural to me and feels more dynamic. The majority of people find it easier to learn this way.
If there's something specific you'd like to know / have me assist with just tell me
@@devopstoolbox nothing specific. i've been browsing your content and made a comparison since i heavily rely on blogs for information e.g. digital ocean posts. just realized how easy it is to understand all this via the blogging medium vs this video medium
@@sazk4000 Sure, I think it's just a matter of preference. I still blog from time to time but more around theory / culture stuff at omerxx.com (shared on medium / dev.to as well). I moved technical content to video form where most people find it easier to consume (and more people become aware of it). Plus, I'm having much more fun creating :)
This is my load time is 117.92ms with 97 plugins, most of them are to improve the appearance
You must be using some great ones if that's the case!