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

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs