Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.7 KB

03_NvimPlugins.md

File metadata and controls

38 lines (31 loc) · 1.7 KB

Neovim Plugin setup

If not already done, follow basic configuration guide first.

Other packages installation

This steps are needed to have JavaScript and SCSS linting features in Neovim. Tern is used instead to have JavaScript documentation on the fly, trough [deopolete plugin]i(https://github.com/Shougo/deoplete.nvim). If not followed, my configuration files will not find every tool they need causing warning at startup.

  • Get JSHint using NVM and Node.js:

    git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
    nvm install ${NODE_VERSION} # For example NODE_VERSION=6.2.2
    npm install -g jshint tern
    
  • Get scss-lint using Ruby (relative PPAs) and SASS:

    sudo apt-add-repository [-E] ppa:brightbox/ruby-ng # -E flag if you are behind a proxy
    sudo apt-get update
    sudo apt-get install ruby2.3 ruby2.3-dev
    sudo su -c "gem install sass"
    sudo su -c "gem install scss_lint"
    

Neovim plugins installation

  • Install Plug as plugin manager:

    curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
        https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    
  • Install Neovim python-client:

    sudo apt-get install python-dev python-pip python3-dev python3-pip
    pip3 install neovim