Files
dotfiles/nvim/.config/nvim
2026-06-27 18:38:23 +02:00
..
2026-06-22 14:15:48 +02:00
2026-06-27 15:55:24 +02:00
2026-06-22 14:15:48 +02:00
2026-06-25 16:54:45 +02:00
2026-06-27 18:38:23 +02:00

romanzy neovim config

Inspirations:

Neovim Notes

See custom keymaps with short descriptions with <leader><leader>h.

Split shortcuts:

  • <leader>sv open a vertical split
  • <leader>sh open a horizontal split
  • <leader>se equalize split sizes
  • <leader>sc close the current window

Resize shortcuts:

  • <leader>rh make the current window narrower
  • <leader>rl make the current window wider
  • <leader>rj make the current window shorter
  • <leader>rk make the current window taller
  • <leader>re equalize split sizes

Buffer shortcuts:

  • <leader>bp previous buffer
  • <leader>bn next buffer
  • <leader>bd delete the current buffer

Telescope shortcuts:

  • <leader>ff find files
  • <leader>fg live grep
  • <leader>fb list buffers
  • <leader>fh browse help tags

Oil usage:

  • <leader>dl opens 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:

  • gd go to definition
  • gD go to declaration
  • grd list references
  • grn rename symbol
  • <C-Space> trigger completion

Diagnostics:

  • g. open diagnostic float
  • gl send diagnostics to the location list
  • gle display error information
  • gie toggle inline errors
  • gve toggle virtual line errors
  • g] jump to next error
  • g[ 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