Neovim Lua configuration with common editor key bindings and native LSP support.
- Native LSP configurations: nvim-lspconfig
- Auto LSP configurator: mason.nvim
- LSP autocomplete support: nvim-cmp
- Auto detect indentation: vim-sleuth
- Line indentation guides: indent-blankline.nvim
- Git signs in number column: gitsigns.nvim
git clone --recurse-submodules https://github.com/yuriusudev/nvim.git $HOME/.config/nvim
git pull
git submodule update --recursive --remote
Tip
Run :Mason to manually select and install native Language Servers.
Or configure mason-lspconfig to automatically install supported Language Servers.
Tip
Default <Leader> key is mapped as <Space> key.
| Mode(s) | Key | Function |
|---|---|---|
n • i • v |
Ctrl + w | Close the current buffer |
n • i • v |
Ctrl + s | Save the current buffer content |
n |
Tab | Switch to the next tab buffer |
n |
Shift + Tab | Switch to the previous tab buffer |
v |
Tab | Increase indent of current selected line(s) |
v |
Shift + Tab | Decrease indent of current selected line(s) |
n • i • v |
Del | Delete key does not yank characters |
n • i • v |
Ctrl + x | Cut the current line or selected texts |
n • i • v |
Ctrl + c | Copy the current line or selected texts |
n • i • v |
Ctrl + v | Paste text from clipboard |
n • i • v |
Ctrl + a | Select all text |
n • i • v |
Ctrl + z | Undo last action |
n • i • v |
Ctrl + y | Redo last undo action |
n • i • v |
Shift + ← ↑ ↓ → | Select text using arrow keys |
| Mode(s) | Key | Function |
|---|---|---|
i |
Enter | Confirm autocomplete selection |
i |
Esc | Closes autocomplete dialog (does not return to normal mode) |
i |
Tab | Select next item in autocomplete list |
i |
Shift + Tab | Select previous item in autocomplete list |
i |
Shift + ↑ ↓ | Scrolls up or down autocomplete documentation dialog |
n |
Space + ← → | Switch between previous and next buffers |
n |
Space + ↑ ↓ | Shows previous or next diagnostic dialog |
n |
Space + ? | Shows diagnostic dialog for the current highlighted symbol |
n |
Space + / | Shows diagnostic list buffer |
n |
Space + r | Rename Symbol |
n |
Space + c + a | Code Actions |
n |
Space + f | Format Code |
n |
Space + g + D | Goto Declaration |
n |
Space + g + r | Goto References |
n |
Space + g + i | Goto Implementation |
n |
Space + g + d | Goto Definition |
n |
Space + g + t | Goto Type Definition |
n |
Space + d | Hover Documentation |
n |
Space + s + h | Signature Help |
n |
Space + w + a | Workspace Add Folder |
n |
Space + w + r | Workspace Remove Folder |
n |
Space + w + l | Workspace List Folders |