Plugin file for setting up nvim
- Install main libraries
$ brew install neovim
$ brew install gopls
$ 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'
-
Setup config by copying config file from this repository to
~/.config/nvimdirectory -
Install Plugins
$ nvim +PlugInstall
- Leader key was mapped to ','
gd : Go to definition
gi : Go to implementation
tab + T: Display directory tree
ctrl-o : Go back previous open file
ctrl-p : Open fzf search window
ctrl-u : Scroll page up
ctrl-d : Scroll page down
,ae : switch to test file
,-tab : switch between previous file
- On fzf window, we can use
Ctrl + K / Jto move up / down on file list andCtrl + U / Dto move up / down on preview window