Files
dotfiles/nvim/.config/nvim
2026-06-25 22:36:50 +02:00
..
2026-06-22 14:15:48 +02:00
2026-06-25 22:36:50 +02:00
2026-06-22 14:15:48 +02:00
2026-06-25 16:54:45 +02:00
2026-06-25 16:54:45 +02:00

romanzy neovim config

Inspirations:

Neovim Notes

Splits

Horizontal split:

:sp

Vertical split:

:vs

Open a file in a horizontal split:

:sp path/to/file

Open a file in a vertical split:

:vs path/to/file

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

Browse files with:

<leader>dl

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 parent directory of the current file
  • <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 in a right-hand vertical split
  • edit the Oil buffer, then :w to apply file operations
  • hidden files are shown, but .git stays hidden

Open netrw explicitly with:

<leader>nl
:Ex

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

Open a terminal in the current window:

:term

Open a terminal in a horizontal split:

:sp | term

Open a terminal in a vertical split:

:vs | term

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
  • g] jump to next error
  • g[ jump to previous error

Tree-sitter

Tree-sitter is managed with nvim-treesitter via vim.pack.

Installing missing parsers requires the external tools from the upstream README:

  • tar
  • curl
  • tree-sitter-cli
  • a C compiler

If tree-sitter is on your PATH, startup will try to install the configured parsers if they are missing.

Useful commands:

:TSUpdate
:TSInstall lua bash json
:TSInstallInfo
:InspectTree
:checkhealth vim.treesitter