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
  • Наука та технологія

КОМЕНТАРІ • 53

  • @iduran
    @iduran 10 місяців тому +13

    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.

    • @devopstoolbox
      @devopstoolbox  10 місяців тому +1

      Damn! Thanks for this! Totally missed this one.
      My favorite comments are those I actually learn from 🙏

    • @iduran
      @iduran 10 місяців тому

      @@devopstoolbox 🙏

  • @sebastianmangelsen8056
    @sebastianmangelsen8056 10 місяців тому +1

    great content and I like the hands on using regular expressions for changing the configuration. Thanks for sharing!

  • @felipegutierrez2944
    @felipegutierrez2944 9 місяців тому +2

    I would love to watch how to set lazyvim from scratch and see what plugins will you use, great content!

    • @devopstoolbox
      @devopstoolbox  9 місяців тому

      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

  • @stoicfloor
    @stoicfloor 10 місяців тому +1

    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!

    • @devopstoolbox
      @devopstoolbox  10 місяців тому +1

      Man what a feedback! Thank you for the kind words buddy!
      It really does mean a lot to me.

  • @chyldstudios
    @chyldstudios 9 місяців тому +1

    I just switched to using the "lazy" plugin manager. Much nicer and quicker. Nice job on the video, very professional.

  • @dereklomax161
    @dereklomax161 10 місяців тому +3

    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.

    • @devopstoolbox
      @devopstoolbox  10 місяців тому

      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!

  • @malamhari_
    @malamhari_ 8 місяців тому

    This was the easiest migration I have ever done!! Thanks

  • @yakomisar
    @yakomisar 9 місяців тому +1

    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.

    • @aleclowry7654
      @aleclowry7654 8 місяців тому +1

      Interesting. You'd rather optimize your startup time but slow down the time it takes to enter insert mode?

    • @yakomisar
      @yakomisar 8 місяців тому +1

      @@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.

    • @devopstoolbox
      @devopstoolbox  8 місяців тому

      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

  • @Redyf
    @Redyf 10 місяців тому +1

    Can you make a setup for Web development with React? Great video btw, your channel is amazing!

    • @devopstoolbox
      @devopstoolbox  10 місяців тому +2

      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 :)

    • @Redyf
      @Redyf 10 місяців тому

      @@devopstoolbox no problem, keep up the good work!

  • @pumpkinjutsu1249
    @pumpkinjutsu1249 10 місяців тому

    Great work! What's the beautiful tune in the background at 5:00?

    • @devopstoolbox
      @devopstoolbox  9 місяців тому

      If you still haven't found it I'll open the archive and search :) LMK

    • @pumpkinjutsu1249
      @pumpkinjutsu1249 9 місяців тому +1

      ​@@devopstoolboxHaven't found it yet. Thanks in advance

    • @devopstoolbox
      @devopstoolbox  9 місяців тому

      ​@@pumpkinjutsu1249 That's the one: ua-cam.com/video/ermsMN0y7CE/v-deo.html

    • @pumpkinjutsu1249
      @pumpkinjutsu1249 9 місяців тому

      ​@@devopstoolboxthank you!

  • @0x0E
    @0x0E 8 місяців тому +1

    what is the popup text area you are using to enter cmdline commands?

    • @devopstoolbox
      @devopstoolbox  8 місяців тому

      I think you’re referring to noice - github.com/folke/noice.nvim

  • @ayoubelmhamdi7920
    @ayoubelmhamdi7920 9 місяців тому +2

    in a substitute how to call the \v in regex, i want to learn more about this mode of substitution

    • @devopstoolbox
      @devopstoolbox  9 місяців тому +2

      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."

  • @niksingh710
    @niksingh710 10 місяців тому

    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.

    • @devopstoolbox
      @devopstoolbox  10 місяців тому +1

      Hey, you mean CSVs?

    • @niksingh710
      @niksingh710 10 місяців тому

      @@devopstoolbox yeah CSVs and if possible the xlsx too

    • @devopstoolbox
      @devopstoolbox  10 місяців тому +1

      @@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

  • @emptybottle1200
    @emptybottle1200 9 місяців тому +1

    do you use kickstarter config of tj?

    • @devopstoolbox
      @devopstoolbox  9 місяців тому

      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

  •  10 місяців тому +1

    Please, where can I found your final config of neovim?

    • @devopstoolbox
      @devopstoolbox  10 місяців тому

      Just pushed updates, check it out: github.com/omerxx/dotfiles/blob/master/nvim/init.lua

  • @jrananth
    @jrananth 9 місяців тому

    May I know the keyboard that you are using?

    • @devopstoolbox
      @devopstoolbox  8 місяців тому

      Of course! HHKB, 4 years old.
      This one was lubed last year and has O-rings on the switches 😉

  • @emptybottle1200
    @emptybottle1200 9 місяців тому

    i like your one lua config file 📁

  • @hellyeahbabyheckyeah
    @hellyeahbabyheckyeah 9 місяців тому

    mine was 48ms with 31 plugins installed

  • @bobbysue517
    @bobbysue517 10 місяців тому

    just timed mine. 45.143 and i thought i was bloated with a bunch of stuff i didn't need.

    • @devopstoolbox
      @devopstoolbox  10 місяців тому

      Nice! you manage to clean up stuff?
      Super fast regardless...

  • @sazk4000
    @sazk4000 9 місяців тому +1

    these things would be so much better to follow in a blog

    • @devopstoolbox
      @devopstoolbox  9 місяців тому

      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

    • @sazk4000
      @sazk4000 9 місяців тому

      @@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

    • @devopstoolbox
      @devopstoolbox  9 місяців тому +1

      @@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 :)

  • @CragCode
    @CragCode 10 місяців тому +1

    This is my load time is 117.92ms with 97 plugins, most of them are to improve the appearance

    • @devopstoolbox
      @devopstoolbox  10 місяців тому

      You must be using some great ones if that's the case!