The Lazy Way in Neovim: From Packer to Lazy.nvim

Sdílet
Vložit
  • čas přidán 20. 02. 2023
  • twitter: / typecraft_dev
    Github: github.com/cpow/cpow-dotfiles
    Lets get Lazy. Lazy is an amazing package for neovim. It has auto-lazy-loading. auto installation of missing plugins, an amazing UI, and other awesome features!
    I personally love it, and have not found any real flaws. Check out this amazing package with me and see what you think :)
  • Věda a technologie

Komentáře • 70

  • @jahba
    @jahba Před rokem +57

    No, thank you. Nerd!

  • @LudoTechWorld
    @LudoTechWorld Před rokem +38

    Yes, lazy is great, and I was also pretty amazed when I restart and everything was working without any error messages. I also really appreciate the option that enables the local plugins you're working on to be automatically loaded from your machine.
    That's why I switched to lazy by the way, I'm not a nerd like you, I only changed my neovim config 18 times this month.

    • @typecraft_dev
      @typecraft_dev  Před rokem +4

      Sounds like you’re a nerd EXACTLY like me!

    • @LudoTechWorld
      @LudoTechWorld Před rokem +2

      @@typecraft_dev NOT AT ALL but I don't have time to explain, just found a cool new CLI tool!

    • @Danielo515
      @Danielo515 Před rokem

      Packer also supports local plugins

  • @arturfil
    @arturfil Před 8 měsíci

    Just made the switch from Packer to Lazy, didn't bother to see how easy it was! thank you for the tutorial!

  • @xerostyle
    @xerostyle Před rokem

    awesome vid. ty for the overview & levity

  • @not_ever
    @not_ever Před 10 měsíci +1

    You saved me so much reading. I think you are the greatest.

  • @pacosmosisx8607
    @pacosmosisx8607 Před 8 měsíci

    Pretty easy to do, thank you so much!

  • @BrazenNL
    @BrazenNL Před rokem +2

    What you said during the intro is _so_ true.

  • @tollpatsch5969
    @tollpatsch5969 Před 11 měsíci +1

    The first 25 seconds of this video perfectly sums up why i even looked for a video like this one. Lates be honest. We dont have a problem with changing nedlessly our config, we rather would have one without. Any I would really get some work done. Nobody wants that, i think

  • @ovidiu_nl
    @ovidiu_nl Před rokem +12

    For me the biggest selling point is what's described in the "Structuring Your Plugins" section of the readme. I like the fact that you can have the spec for the plugins with more complicated configuration (for me pretty much all of them) in separate files and lazy will automatically discover and merge them.

    • @typecraft_dev
      @typecraft_dev  Před rokem +2

      Ah yes, that is very good as well. I didn't get to cover that in this video but I agree its a nice feature

  • @UrzaMancer
    @UrzaMancer Před 10 měsíci

    Wow! Excellent video. I was troubleshooting a fonts / colorscheme issue while following along with your first video in this playlist using Packer, and ended up switching to Lazy as I thought the issue was Packer was unsupported and seemed to not be loading the packages.
    I went through all the steps you did in this video - really wish I would have looked at the rest of the playlist first!
    In the end, I don't think my issue was with Packer. I was using basic macos terminal with no nerd fonts. After switching to iTerm2 and installing a couple nerd fonts, everything looked like it should. I very much like Lazy.nvim and the interface though, nice find!
    One thing I haven't yet figured out how to accomplish - on all your videos so far you have used ':source %' to reload so you can run PackerSync. The source for configs seems to be disabled in Lazy.nvim - is there a way to automatically load new packages after adding them to the modules without exiting and re-opening nvim?

  • @ooogabooga5111
    @ooogabooga5111 Před 6 měsíci

    Thank you, Nerd!

  • @harmeepatel
    @harmeepatel Před rokem +2

    I finished this like, 2 days ago😂 saw lazy in a video and I just had to do it (and it has some nice things)

  • @matheusalexandre3759
    @matheusalexandre3759 Před 3 měsíci

    I'd love to see a video about Rust configuration using lazy!

  • @pluraltest9242
    @pluraltest9242 Před rokem +4

    Can you do a tutorial for dap ts? I guess many devs are just going to print instead of breakpoints

  • @Boxing_Gamer
    @Boxing_Gamer Před 3 měsíci

    Thanks for starting at the beginning (how to install etc) instead of starting in the middle

  • @optimbro
    @optimbro Před rokem +13

    I don't use VIM/Neovim, vscode user but I like this new plugin lol 😂😂

    • @typecraft_dev
      @typecraft_dev  Před rokem +2

      😂

    • @DalpakaNBA
      @DalpakaNBA Před 10 měsíci +2

      imagine using vscode

    • @optimbro
      @optimbro Před 10 měsíci

      @@DalpakaNBA I hope to try neovim soon so I have only browser, and terminal opened for coding. If I can get the autocompletion, and other things to work for good UX. Don't want to use any framework like nvchad, lunarvim, they are good but I want to do it manually when I have time to explore.

  • @ricardorien
    @ricardorien Před rokem

    Thanks!

  • @QmVuamFtaW4
    @QmVuamFtaW4 Před rokem +3

    1:34 how did you remove 'use' from all those lines at once?

    • @typecraft_dev
      @typecraft_dev  Před rokem

      I made a macro to delete use then I ran it 5 times or so

    • @QmVuamFtaW4
      @QmVuamFtaW4 Před rokem

      @@typecraft_dev Ooo thanks

    • @CarlosVixil
      @CarlosVixil Před rokem

      google search and replace vim, i think it will save you a lot of time

    • @plainoldcheese
      @plainoldcheese Před rokem

      You could also block select (ctrl v) and then select and delete all of them at once.

  • @eduar2tc904
    @eduar2tc904 Před rokem

    Fireship style ?

  • @ricardorien
    @ricardorien Před rokem +1

    Has not been easy for me, I was using Christ@machine original-tutorials folder structure and for some reason Quiscope plugin config doesn't load. At this moment I'm trying with you folder structure.

    • @ricardorien
      @ricardorien Před rokem +1

      Ok, you folder structure is cleaner, I love it. Now, I'm facing why Quickscope config stop working.

    • @ricardorien
      @ricardorien Před rokem

      an easy way to put a config is this, in lazy call:
      {
      'unblevable/quick-scope' ,
      init = function()
      vim.cmd([[
      " Trigger a highlight in the appropriate direction when pressing these keys:
      let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
      highlight QuickScopePrimary guifg='#00C7DF' gui=underline ctermfg=155 cterm=underline
      highlight QuickScopeSecondary guifg='#afff5f' gui=underline ctermfg=81 cterm=underline
      let g:qs_max_chars=150
      ]])
      end
      },

  • @kishoregarapati1
    @kishoregarapati1 Před rokem +3

    Can you do a video on neovim setup for java development. It will be very helpful for all java developers who wants to switch to neovim.

    • @Frostliche
      @Frostliche Před rokem

      Just use IntelliJ with Ideavim plugin

    • @javi___
      @javi___ Před rokem +4

      step 1: learn kotlin and drop that horrible language

  • @darknetworld
    @darknetworld Před rokem +1

    I guess it one way to load script. It better way to script differently to able to disable plugins which good for testing those plugins.

  • @WhiteSiroi
    @WhiteSiroi Před rokem

    ty G

  • @ThisIsMMI
    @ThisIsMMI Před rokem

    What is the theme of nvim?

  • @Cordic45
    @Cordic45 Před rokem

    how to create new file in nvim?

    • @typecraft_dev
      @typecraft_dev  Před rokem

      I use nvim tree. You can navigate to the dir you want and hit “a” to add a file

    • @Cordic45
      @Cordic45 Před rokem

      @@typecraft_dev thanks!

    • @not_ever
      @not_ever Před 10 měsíci

      Just open a file in the usual way with :e and save the file

  • @user-pc7sy6hq8k
    @user-pc7sy6hq8k Před 8 měsíci

    am-lazy-ng vim

  • @Saulimedes
    @Saulimedes Před rokem +1

    Dotfiles?

    • @typecraft_dev
      @typecraft_dev  Před rokem +1

      Here you go! github.com/cpow/cpow-dotfiles

    • @Saulimedes
      @Saulimedes Před rokem

      @@typecraft_dev Thanks so much. I see the config is still pre-lazy. I was wondering if you had come up with a more beautiful solution for the init.lua not listing all files one by one. :/

    • @3zRides
      @3zRides Před rokem +1

      I am looking forward to that too

  • @MagicMoshroom
    @MagicMoshroom Před 11 měsíci +2

    For me as a beginner Lazy is bundled with too many plugins that do not seem to be really required for lazy to run (40+ plugins). I'd rather opt-in than having to disable plugins manually. It makes it harder to customise when you don't know which plugin is causing what change. Some keymap changes don't even show up in the search but which-key has them. There is just too much blackbox for my taste.
    However I love the lazy loading aspect and overall useful selection of plugins. Would be the cherry on top if the lazy UI would let you actually manage plugins and browse some repo / create config files per plugin and so on. I'm just spoiled like that.

    • @runeenggaardlausen1135
      @runeenggaardlausen1135 Před 7 měsíci +2

      I don't quite understand what you mean by "too many plugins", "keymap changes", and "black box" in the context of this video. Could be that you're referring to the LazyVim distribution? What's described here is just the Lazy package manager, not the LazyVim distro. I wrote my config from scratch using Lazy as the plugin manager, and it's a great experience.

  • @pefington
    @pefington Před rokem +2

    Video about Neovim, deletes all the "use" manually instead of using visual block mode ಠ_ಠ
    Jk thanks for the video.

  • @greyhairchooselife
    @greyhairchooselife Před měsícem

    endless replaying 3:54

  • @patriciourrutia2297
    @patriciourrutia2297 Před rokem +1

    Thanks for the video! Super easy to follow.
    :%s/use //

    • @typecraft_dev
      @typecraft_dev  Před rokem +1

      Haha yeah I get lazy and use macros more. Don’t know why. But yes that would’ve been better!

  • @CarlosVixil
    @CarlosVixil Před rokem +1

    sir.............
    why did you just repeat a motion 50 times instead of %s/use/ /g ???????????????????

    • @typecraft_dev
      @typecraft_dev  Před rokem +1

      I used a macro and did something like `10@q` to format big chunks of it. could've been more succinct but hey, it wasnt that bad!!

    • @CarlosVixil
      @CarlosVixil Před rokem

      @@typecraft_dev I JUST now learned about :norm
      basically you can type out the motions, like a very long keymap, and it executes on each selected line.

  • @liminal6823
    @liminal6823 Před rokem

    I'm such a follower 😐