Files
dotfiles/nvim/.config/nvim
2026-07-03 14:13:04 +02:00
..
2026-06-28 00:57:08 +02:00
2026-07-03 14:13:04 +02:00
2026-06-22 14:15:48 +02:00
2026-07-03 14:08:13 +02:00
2026-07-03 05:16:29 +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

Git shortcuts:

  • :Git to run commands directly (:Git status, :Git log --oneline)
  • <leader>lg open LazyGit

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
  • gx opens 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:

  • gd go to definition
  • gD go to declaration
  • grd list references
  • grn rename symbol
  • <leader>ca show code actions
  • <leader>cf apply quick fixes
  • <leader>cs show source actions
  • <C-Space> trigger completion

Diagnostics:

  • g. open diagnostic float
  • gl send diagnostics to the location list
  • gld display diagnostic information
  • gid toggle inline diagnostics
  • gvd toggle virtual line diagnostics
  • ]g jump to next warning or error
  • [g jump 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