- Linux or Mac
- git (for automatic installation)
- make (for automatic installation)
- Oh My Zsh!
# clone repository
make install # same when updating
# configure nvim
make nvim-configure
# install all additional packages for languages (See Makefile to install packages for some language)
make deps-install
Is installed with install.sh script. Manually setup latest Linux neovim release:
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
sudo ln -s $HOME/nvim.appimage $HOME/.local/bin/nvim
Run :Lazy
and update, also :MasonUpdate
to update the packages and LSP dependencies.
- Use
<ctrl> + [
instead of<Esc>
<leader>
– Space- See
:help unimpaired
for some fancy keymaps
<C-h>
– move left or open new left split<C-l>
– move right or open new right split<C-k>
– move up or open new top split<C-j>
– move down or open new bottom split
<ctrl> n
– next item<ctrl> p
– previous item
K
- move selection upJ
- move selection down
<leader><leader>
– toggle filetree<C-n>
– locate opened file in the filetreeo
– open directory or file
<leader> sf
– find files<leader> sg
– git grep<leader> sc
– find commits<leader> so
– symbols<leader> sr
– references<leader> b
– show buffer list
gcc
– toggle commentinggf
– open a file corresponding to a word under the cursorgx
– open a link corresponding to a word under the cursorgd
– go to definitiong;
– go to the last edited line in the current opened buffergv
– reselect last visual selection]d
and[d
– go through diagnostics]<leader>
and[<leader>
– add empty line above and under cursor<leader>ca
– show code actions<leader><leader>
– show code actions in visual mode<leader>f
- format code<leader>rr
- refactor code in visual mode<leader>rn
- LSP rename<leader>pr
- rename with spectrevim-surround
is enabled, check key binds in their repo
<leader>ss
to save session<leader>ss
to load session
<leader>lg
lazygit<leader>tb
tagbar<C-p>
alpha<leader>hp
toggle current chunk git diffgp
insert python script
Add to .zshrc/.bashrc:
export PATH="$HOME/.local/bin:$PATH"
export FZF_BASE="/usr/bin/fzf"