romanzy neovim config
Inspirations:
Neovim Notes
See custom keymaps with short descriptions with <leader><leader>h.
Split shortcuts:
<leader>svopen a vertical split<leader>shopen a horizontal split<leader>seequalize split sizes<leader>scclose the current window
Resize shortcuts:
<leader>rhmake the current window narrower<leader>rlmake the current window wider<leader>rjmake the current window shorter<leader>rkmake the current window taller<leader>reequalize split sizes
Buffer shortcuts:
<leader>bpprevious buffer<leader>bnnext buffer<leader>bddelete the current buffer
Telescope shortcuts:
<leader>fffind files<leader>fglive grep<leader>fblist buffers<leader>fhbrowse help tags
Git shortcuts:
:Gitto run commands directly (:Git status,:Git log --oneline)<leader>lgopen LazyGit
Oil usage:
<leader>dlopens the file browser<CR>opens a file or enters a directory-goes to the parent directory<BS>also goes to the parent directory<A-h>also goes to the parent directory<A-l>opens the selected file or enters the selected directory<C-p>previews the selected entrygxopens the file in external viewer
Window Navigation
Move between windows with:
<C-hjkl>
Cycle through windows:
<C-w>w
Terminal
Two options to leave terminal mode and return to normal mode:
<\\-Esc>
<C-Esc>
LSP
Useful Mason commands:
:Mason
:MasonLog
:checkhealth mason
Useful LSP commands:
gdgo to definitiongDgo to declarationgrdlist referencesgrnrename symbol<leader>cashow code actions<leader>cfapply quick fixes<leader>csshow source actions<C-Space>trigger completion
Diagnostics:
g.open diagnostic floatglsend diagnostics to the location listglddisplay diagnostic informationgidtoggle inline diagnosticsgvdtoggle virtual line diagnostics]gjump to next warning or error[gjump to previous warning or error
Tree-sitter
tree-sitter-cli and a C compiler is required to be installed.
Useful commands:
:TSUpdate
:TSInstall lua bash json
:TSInstallInfo
:InspectTree
:checkhealth vim.treesitter