Skip to content

Daniel-M/nvimConfigFiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvimConfigFiles

My configurations to get NeoVim up an running in my machine.

COC.NVIM

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

Installing Neovim (Last tested June the 12, 2018 with master branch of Neovim)

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

Getting the source

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

Building

Prerequisites

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   

Building neovim

Now at the source of neovim we can build it

mkdir build   
cd build   
cmake ..   
make    

Installing (user only)

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.

Using nvim as regular binary

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

Installing vim-plug

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

If you wanna get the latest vim-plug

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.

Some notes regarding Neovim behaviour

  • It could happen that some plugins require you to execute, pip2 install neovim as root in Debian. YouCompleteMe is one of the plugins that have shown this behaviour.

About

My configurations to get NeoVim up an running in my machine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published