My configurations to get NeoVim up an running in my machine.
When in normal mode just this command once,
CocInstall coc-tsserver coc-stylelint coc-json coc-python coc-prettier coc-html coc-css coc-eslint coc-yaml coc-ultisnips coc-gocode coc-highlight coc-snippets coc-yank coc-pairs coc-markdownlint coc-explorer
The contents of this repository must go into .config/nvim/
,
git clone git@github.com:Daniel-M/nvimConfigFiles.git ~/.config/nvim
https://github.com/neovim/neovim Instructions summarized from here
First you need to install several preriquistes in Debian (most of them should be already installed),
`apt-get install libtool libtool-bin autoconf automake cmake curl g++ pkg-config unzip
Now, get the source of neovim,
We can get the master
by calling
git clone git@github.com:neovim/neovim.git
You can check the lattest tag with git tag
inside the cloned folder.
The latest tag (as today) is v0.3.0
so you can use
git checkout v0.3.0
To have the tag and build upon it.
The last option is to use the nightly
build that passes the automated build-tests
wget https://github.com/neovim/neovim/archive/nightly.zip
First we need to compile the preriquisites,
make deps
This is a short hand for the set of instructions,
cd neovim
mkdir .deps
cd .deps
cmake ../third-party
make
Now at the source of neovim
we can build it
mkdir build
cd build
cmake ..
make
Now install at $HOME/opt/neovim
(but read the note below)
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH=$HOME/opt/neovim"
make install
Note: It could happen that make
still tries to make a whole system installation.
To fix this issue you can do the following while inside the build
path,
cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/opt/neovim ..
make -j 4
make install
This should fix it.
In order to use the binary we have to add the bin
subdir into our $PATH
export PATH="$HOME/neovim/bin:$PATH"
A workaround is to make a symbolic link at /usr/local/bin
pointing to the binary
Checkout the repository at https://github.com/junegunn/vim-plug.
vim-plug is include by default here, just add a symbolic link of autoload
to $HOME/.config/nvim/autoload
vim-plug
is a nice plugin manager for vim and neovim. To install it execute the following to get installed the vim-plug
plugin manager for Neovim
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Read the doc, is very well documented and clear.
- It could happen that some plugins require you to execute,
pip2 install neovim
asroot
in Debian.YouCompleteMe
is one of the plugins that have shown this behaviour.