Setup Neovim on Manjaro Linux

Written by

in

,

Install Neovim

First of all, install neovim

$ sudo pacman -S neovim

Install Languages Providers

Install Programing Languages

$ sudo pacman -S ruby nodejs perl

Install Python provider

$ sudo pacman -S python-pynvim

Install Ruby provider

$ yay -S ruby-neovim

Edit .profile in home directory and add a gem path.

$ vim ~/.profile
# Add Ruby Gem Path
export PATH=$PATH:$HOME/.local/share/gem/3.0.0/bin

Reload .profile file.

$ source ~/.profile

Install Node.js provider

$ yay -S nodejs-neovim

Edit Environment Variables for Perl provider

Edit .profile on your home directory.

$ vim ~/.profile
# Add Perl Environment Variables
export PERL_MB_OPT="--install_base $HOME/perl5"
export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"
export PERL_LOCAL_LIB_ROOT=$HOME/perl5
export PERL5LIB="$$PERL5LIB:$HOME/perl5/lib/perl5"
export PATH="$PATH:$HOME/perl5/bin"

Reload .profile file.

$ source ~/.profile

Install Perl provider

$ sudo pacman -S cpanminus
$ sudo pacman -S perl-local-lib
$ cpanm -n Neovim::Ext

Install Clipboard

$ sudo pacman -S xclip

Enable Clipboard

Edit ~/.config/nvim/init.vim

set clipboard+=unnamed,unnamedplus

Chack health

Open neovim and type following command.

:checkhealth

Note:

If you have installed Perl host provider(Neovim::Ext) and still checkhealth warning appears, delete ~/perl5 directory, and reinstall Neovim::Ext.

$ rm -rf ~/perl5
$ cpanm -n Neovim::Ext

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *