DEV Community

Cover image for Neovim with Vim-plug, Packer Or Lazy.nvim plugin manager
hardyweb
hardyweb

Posted on

Neovim with Vim-plug, Packer Or Lazy.nvim plugin manager

I've been using Neovim since version 0.4.3. I moved to Linux and Neovim as my programming environments because my computer failed to meet the criteria for running vscode.

I used neovim for the first time after a recommendation from a buddy, and he told me that vim and neovim are the same but have a slight difference.

At the time, around early 2020, the formose plugin manager that I used was named vim-plug, designed by junegunn, after which I migrated to packer.nvim and then to lazy.nvim.

In terms of using Language Server Protocol, there is a significant difference between vim-plug and packer. The protocol that can listen and automatically complete all functions in your programming language.

I use coc.nvim for autocomplete in vim-plug, and then migrate to packer.I use nvim-cmp and then nvim-cmpe in nvim. After lazy.nvim was released last year, I migrated once more, this time using neovim lsp-config.

Here are my publicly accessible neovim init file for reference.

Nvim-plug

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Enter fullscreen mode Exit fullscreen mode
wget -o .config/nvim/init.vim  https://raw.githubusercontent.com/hardyweb/myDotConfig/main/init.vim

Enter fullscreen mode Exit fullscreen mode
nvim --headless +PlugInstall +qa
Enter fullscreen mode Exit fullscreen mode

Packer.nvim

git clone --depth 1 https://github.com/wbthomason/packer.nvim\
 ~/.local/share/nvim/site/pack/packer/start/packer.nvim
Enter fullscreen mode Exit fullscreen mode
wget -o .config/nvim/init.lua https://raw.githubusercontent.com/hardyweb/myDotConfig/main/init.lua
Enter fullscreen mode Exit fullscreen mode
nvim --headless :PackerInstall +qa
Enter fullscreen mode Exit fullscreen mode

Lazy.nvim

cd .config/

git clone https://github.com/hardyweb/neovim-with-lazy.nvim-manager.git nvim

Enter fullscreen mode Exit fullscreen mode

Start nvim as usual, All nassery plugins will be git cloned by lazy.nvim

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay