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

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

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay