Skip to content

Here I will add all my nvim config and improvements

Notifications You must be signed in to change notification settings

024VH98/nvim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim Configuration

Pre-requisites

  • Node -> 12.^
  • Yarn optional

Neovim instalation

Get Neovim

  • Installing using brew
brew install neovim

Note: You can follow it's github guide https://github.com/neovim/neovim/wiki/Installing-Neovim Also you can see my firts tutorial to follow https://dougblack.io/words/a-good-vimrc.html

Install Python support

  • This is to allow some pluggins to work
pip3 install --user neovim

Note: You have to use python3

Add Vim Plug (Pluggin manager)

  • Execute this command to dowload it
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

Note: You can also follow the instructions that are in his github repo https://github.com/junegunn/vim-plug

Fast config using install file

Note: This only is supported for Linux and Mac

Execute install file

  • Pick the instalation file for you OS and run it
./install

Install dependencies

  • Open your file init.vim and install plug packages
:PlugInstall

[DEPRECATED] Setting up your vim.init

Pre-work

  • Create a folder inside '~/.config' called 'nvim' and inside them create a file named init.vim
mkdir ~/.config/nvim
touch ~/.config/nvim/init.vim

Put all your init.vim configuration inside that file

  • You can copy and paste the 'init.vim' of this repo inside your file

Source and install the pluggins

  • You need to save the file with ':w'
  • Then source the file with ':source %'
  • Finaly install the pluggins with ':PlugInstall'

Add and ENV variable for your VIMRC location

  • You will need to add this to your '.zshrc' or '.bashprofile'
export MYVIMRC="~/.config/nvim/init.vim"

Special documentation for some plugs

coc.vim

Note. In case it doesn't work you will need to do it manualy with npm or yarn

cd ~/.config/coc/extensions/
npm install coc-json coc-tsserver

coc.vim with ruby

  • Here you will need to install coc-solargraph
  • Then you will need to install the gem solargraph
  • Also you need to have the ruby version needed
cd your-project-path
gem install solargraph
solargraph config
rbenv install 2.5.1
rbenv global 2.5.1

ALE

ALE - Ruby

  • For linting you will need to have installed all in gem file with rubocop

About

Here I will add all my nvim config and improvements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published