Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
codeinabox ( codeinabox@programming.dev )  to Neovim@programming.devEnglish · 7 months ago

Neovim 0.12's Built-in Plugin Manager — Should You Ditch lazy.nvim?

samuellawrentz.com

external-link
message-square
6
link
fedilink
18
external-link

Neovim 0.12's Built-in Plugin Manager — Should You Ditch lazy.nvim?

samuellawrentz.com

codeinabox ( codeinabox@programming.dev )  to Neovim@programming.devEnglish · 7 months ago
message-square
6
link
fedilink
Samuel Lawrentz | Neovim 0.12's Built-in Plugin Manager — Should You Ditch lazy.nvim?
samuellawrentz.com
external-link
Neovim 0.12 shipped vim.pack, a built-in plugin manager. I've been running lazy.nvim for two years — here's whether it's actually worth migrating.
alert-triangle
You must log in or register to comment.
  • Slotos ( Slotos@feddit.nl ) 
    link
    fedilink
    arrow-up
    8
    ·
    7 months ago

    The Deal-Breaker

    vim.pack has no event/filetype/command-based lazy loading. None. You either load at startup or you manually call :packadd in your config yourself.

    Oh, so it’s sane and doesn’t try to bullshit it’s way out of plugin authors’ incompetence?

    I’m sold!

    • Piatro ( Piatro@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      It successfully protects us from authors not including lazy loading, why is that bad?

      • Slotos ( Slotos@feddit.nl ) 
        link
        fedilink
        arrow-up
        1
        ·
        7 months ago

        It doesn’t, it shifts responsibility at best.

  • Hexarei ( Hexarei@beehaw.org ) 
    link
    fedilink
    arrow-up
    2
    ·
    7 months ago

    This reads like AI. But also doesn’t touch on the problem of running setup functions and such being very different.

    • NuclearSquid ( NuclearSquid@piaille.fr ) 
      link
      fedilink
      arrow-up
      1
      ·
      7 months ago

      @Hexarei @codeinabox
      I was about to say that. Loading a plugin with it’s default config is easy (shit I did that back with Vim-Plug, while ignoring Packer because “it just works”, a couple years ago).

  • SinTan1729 ( SinTan1729@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 months ago

    Just to add to it, there’s a thin wrapper around it called zpack that’s basically a drop-in replacement for lazy.

    I’m not the dev, but I’ve migrated from lazy to it without much of a hassle, and the performance seems to be on par. I did encounter a bug, but the dev was quick to fix it. Just wanted to give them a shout-out.

Neovim@programming.dev

neovim@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !neovim@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 2 users / month
  • 247 users / 6 months
  • 32 local subscribers
  • 2.95K subscribers
  • 211 Posts
  • 526 Comments
  • Modlog
  • mods:
  • Erlingur ( erlingur@programming.dev ) 
  • Howard Do ( howarddo@programming.dev ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code