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
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 entry
Window Navigation
Move between windows with:
<C-h> left
<C-j> down
<C-k> up
<C-l> right
Cycle through windows:
<C-w>w
Terminal
Leave terminal mode and return to normal mode:
<Esc>
LSP
When an LSP server is attached to the current buffer:
gdgo to definitiongDgo to declarationgrdlist referencesgrnrename symbol<C-Space>trigger completion
Diagnostics:
g.open diagnostic floatglsend diagnostics to the location listgledisplay error informationgietoggle inline errorsgvetoggle virtual line errorsg]jump to next errorg[jump to previous error
Tree-sitter
Tree-sitter is managed with nvim-treesitter via vim.pack. tree-sitter-cli and a C compiler is required to be installed.
Useful commands:
:TSUpdate
:TSInstall lua bash json
:TSInstallInfo
:InspectTree
:checkhealth vim.treesitter