Code Monkey home page Code Monkey logo

nvimconfigfiles's Introduction

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 [email protected]: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 [email protected]: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.

nvimconfigfiles's People

Contributors

daniel-m avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.