Install Neovim
First of all, install neovim
$ sudo pacman -S neovim
Install Languages Providers
Install Programing Languages
$ sudo pacman -S python 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 ~/.bash_profile
# Add Ruby Gem Path
export GEM_PATH="$HOME/.local/share/gem/ruby/3.0.0/bin"
export PATH="$PATH:$HOME/.local/share/gem/3.0.0/bin"
Reload .bash_profile file.
$ source ~/.bash_profile
Install Node.js provider
$ yay -S nodejs-neovim
Edit Environment Variables for Perl provider
Edit .profile on your home directory.
$ vim ~/.bash_profile
# Add Perl Environment Variables
export PERL_MB_OPT="--install_base $HOME/perl5"
export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"
export PERL5LIB="$HOME/perl5/lib/perl5"
export PATH="$PATH:$HOME/perl5/bin"
Reload .profile file.
$ source ~/.bash_profile
Install Perl provider
$ sudo pacman -S cpanminus
$ sudo pacman -S perl-local-lib
$ cpanm -n Neovim::Ext
$ cpanm --local-lib=~/perl5 local::lib && \
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
Install Clipboard
$ sudo pacman -S xclip
Enable Clipboard
Edit ~/.config/nvim/init.vim
set clipboard+=unnamed,unnamedplus
Check the health
Open neovim and type following command.
:checkhealth
Conclusion
Here I show how to setup Neovim and add settings to pass the checkhealth command. This is the base of the Neovim setting. Now you can customize Neovim to your favorite one. Enjoy Neovim life!
Last Updated on February 24, 2025 by Kenn
Leave a Reply