Skip to content

Latest commit

 

History

63 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Setting up NVIM

  1. Download and install iTerm2 (brew install --cask iterm2) and NeoVim (MAC:brew install neovim, On Ubuntu, to get the latest vesrsion: sudo add-apt-repository ppa:neovim-ppa/stable sudo apt update && sudo apt install neovim -y)
  2. Run the following to install nvim-plug for managing plugins:
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'
  1. Install the JetBrains throuh Font Book and set it as the font in iTerm2

  2. install git and do git config --global credential.helper store

  3. Create a folder under ~/.config/nvim and place the init.vim file there.

  4. Install nodejs (MAC: brew install node, UBUNTU: curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -, sudo apt install -y nodejs)

  5. Install npm and yarn (sudo npm install --global yarn)

  6. Open with NVIM (will get some errors) and run :PlugInstall

  7. cd into ~/.local/share/nvim/plugged/coc.nvim and run yarn install You need to install the extentions you need for the language you are using, my setup: :CocInstall coc-tsserver for typescript/javacript :CocInstall coc-python for python

  8. Set key bindings in iTerm2 :

image

12) Install silver searcher (MAC:`brew install the_silver_searcher`, Ubuntu:`sudo apt-get install silversearcher-ag`) this is needed for CtrSF and add the below to .zshrc
#determines search program for fzf
if type ag &> /dev/null; then
    export FZF_DEFAULT_COMMAND='ag -p ~/.gitignore -g ""'
fi
#refer rg over ag
if type rg &> /dev/null; then
    export FZF_DEFAULT_COMMAND='rg --files --hidden'
fi
  1. run pip3 install jedi, this is need for coc code completion

Debugger Setup

Python

  1. Install debugpy in a dedicated virtual environment, this is used only for debugpy, see https://github.com/mfussenegger/nvim-dap-python for details.
python3 -m venv ~/environments/debugpy
source ~/environments/debugpy/bin/activate
pip3 install debugpy

The require('dap-python').setup('~/environments/debugpy/bin/python') will point to the python file.

Typescript/Javascript React

https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#Javascript-chrome


Change path in init.vim file to above if needed
Launch Chrome in debug mode on mac with:

sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

About

Setup files for nvim

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages