Neovim config using Lua.
Heavily inspired by my mentor https://github.com/dangngo
- Make a backup of your current
nvim
config if necessary:
mv ~/.config/nvim ~/.config/nvim.backup
- Clone this repo to the
${HOME}/.config/nvim
directory:
git clone https://github.com/hungtg7/neovim.git ~/.config/nvim
- Run
nvim
and wait for plugins to be installed
Key Binding |
Action |
SPC SPC |
Find files in current directory |
SPC TAB |
List opened buffers |
TAB |
Switch between opened buffers |
SPC e t |
Open file explorer (nvim-tree) |
SPC f |
Search text in current buffer |
SPC / |
Search text in current project |
SPC p |
List projects |
SPC q |
Close buffer |
SPC w |
Quit |
Key Binding |
Action |
Ctrl <h,j,k,l> |
Switch window |
Ctrl-w v |
Split vertically |
Ctrl-w s |
Split horizontally |
Ctrl-w q |
Delete window |
Ctrl-w > |
Increase width |
Ctrl-w < |
Decrease width |
Ctrl-w + |
Increase height |
Ctrl-w - |
Decrease height |
Ctrl-w = |
Reset window size |
Key Binding |
Action |
gd |
Go to definition |
gD |
Go to declaration |
K |
Hover (info about symbol under cursor) |
gl |
Show current diagnostic in float |
SPC l j |
Go to next diagnostic |
SPC l k |
Go to previous diagnostic |
SPC l r |
Rename symbol |
SPC l R |
Find references of symbol |
Key Binding |
Action |
SPC \ |
Toggle floating terminal |
SPC t h |
Toggle horizontal terminal |
SPC t v |
Toggle vertical terminal |
(Or where I stole some configs..)