- 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/stablesudo apt update && sudo apt install neovim -y) - 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'
-
Install the JetBrains throuh
Font Bookand set it as the font in iTerm2 -
install git and do
git config --global credential.helper store -
Create a folder under
~/.config/nvimand place theinit.vimfile there. -
Install nodejs (MAC: brew install node, UBUNTU:
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -,sudo apt install -y nodejs) -
Install npm and yarn (sudo npm install --global yarn)
-
Open with NVIM (will get some errors) and run
:PlugInstall -
cd into
~/.local/share/nvim/plugged/coc.nvimand runyarn installYou need to install the extentions you need for the language you are using, my setup::CocInstall coc-tsserverfor typescript/javacript:CocInstall coc-pythonfor python -
Set key bindings in iTerm2 :
#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
- run
pip3 install jedi, this is need for coc code completion
- 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.
https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#Javascript-chrome
- git clone https://github.com/Microsoft/vscode-chrome-debug
- cd ./vscode-chrome-debug
- npm install
- npm run build
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