My Neovim config.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
nnra6864 ae16010eef refactor: replace bullets.vim with config/lists.lua for consistent continuation
One Obsidian-style <CR> for list items and > quotes alike: splits mid-line,
continues lists inside quotes, renumbers, outdents/ends on empty items and
leaves quotes on an empty > line. <S-CR> adds a line inside the item, aligned
with its text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:37:49 +01:00
after/lsp refactor: replace bullets.vim with config/lists.lua for consistent continuation 2026-11-09 13:37:49 +01:00
colors feat(picker): switch to snacks.picker 2026-11-05 07:06:20 +01:00
lua refactor: replace bullets.vim with config/lists.lua for consistent continuation 2026-11-09 13:37:49 +01:00
.gitignore feat(theme): add base16 with live reload of Ricer theme 2026-11-05 05:05:10 +01:00
.stylua.toml chore: bootstrap lazy.nvim with base options, keymaps and autocmds 2026-11-05 05:05:10 +01:00
init.lua refactor: replace bullets.vim with config/lists.lua for consistent continuation 2026-11-09 13:37:49 +01:00
lazy-lock.json refactor: replace bullets.vim with config/lists.lua for consistent continuation 2026-11-09 13:37:49 +01:00
LICENSE chore: add CC0 license 2026-11-05 05:05:19 +01:00
README.md feat: autosave notes in Obsidian vaults 2026-11-08 17:41:21 +01:00

nvim

Personal Neovim config.
One file per plugin in lua/plugins, every keymap in lua/config/keymaps.lua.

Features

  • Languages: LSP, treesitter, formatting and debugging for C/C++, C#, Zig, Dart/Flutter, Python, Lua, Bash, fish, Markdown, Typst and YAML.
    Servers that aren't installed are skipped.
  • Theme: base16, live-reloaded from Ricer, with an oh-my-posh style statusline.
  • Notes: replaces Obsidian inside any vault (a folder with .obsidian).
    Links, backlinks, renames that fix links, timestamped notes, and TODO notes that carry open tasks over.
    Notes autosave like in the app: a second after you stop typing, and on leaving insert mode or the buffer. Files outside vaults never autosave.
  • Git: lazygit, VSCode-style diffs between any two commits, file and line history, blame, hunks in the gutter.
  • Files: yazi instead of netrw.
    Renaming or moving a file updates imports and note links.
  • Formatting on save only for languages with one official style (Zig, Dart, fish) or projects with their own formatter config.
    Otherwise <leader>f.
  • Indent: one width per buffer, from editorconfig, else detected from the file, else per language.

Requirements (Arch)

  • Everything:
sudo pacman -S --needed neovim git base-devel tree-sitter-cli ripgrep fd yazi lazygit clang lua-language-server marksman ruff ty tinymist bash-language-server shellcheck yaml-language-server stylua shfmt jq websocat imagemagick ghostscript typst gdb python-debugpy
dotnet tool install --global roslyn-language-server --prerelease
mkdir -p ~/.local/share/netcoredbg ~/.local/bin && curl -L https://github.com/Samsung/netcoredbg/releases/latest/download/netcoredbg-linux-amd64.tar.gz | tar xz -C ~/.local/share/netcoredbg --strip-components=1 && ln -sf ~/.local/share/netcoredbg/netcoredbg ~/.local/bin/netcoredbg

Or only what you need:

  • Core:
sudo pacman -S --needed neovim git base-devel tree-sitter-cli ripgrep fd yazi lazygit
  • Language servers:
sudo pacman -S --needed clang lua-language-server marksman ruff ty tinymist bash-language-server shellcheck yaml-language-server
  • C# language server:
dotnet tool install --global roslyn-language-server --prerelease
  • Formatters (clang, ruff, fish and zig bring their own):
sudo pacman -S --needed stylua shfmt jq
  • Typst preview:
sudo pacman -S --needed websocat
  • Images in the editor (any format but PNG, PDFs, Typst math):
sudo pacman -S --needed imagemagick ghostscript typst
  • Debuggers for C/C++/Zig and Python (Dart/Flutter use the Flutter SDK):
sudo pacman -S --needed gdb python-debugpy
  • C# debugger, Samsung's official release:
mkdir -p ~/.local/share/netcoredbg ~/.local/bin && curl -L https://github.com/Samsung/netcoredbg/releases/latest/download/netcoredbg-linux-amd64.tar.gz | tar xz -C ~/.local/share/netcoredbg --strip-components=1 && ln -sf ~/.local/share/netcoredbg/netcoredbg ~/.local/bin/netcoredbg

Also:

  • Zig: zls matching your zig version (e.g. via zvm).
  • fish (optional, nothing else needs it): fish-lsp adds completion, hover docs and diagnostics.
    It's a Node.js tool that isn't in the official repos; highlighting and formatting work without it.
  • Flutter: the SDK from fvm.
  • Theme: Ricer writes it to lua/theme.lua, which isn't in the repo.
    On a fresh clone, apply a theme in Ricer (or copy lua/theme.lua over); until then it's stock base16, without transparency.
  • A Nerd Font.
    Without one, set vim.g.have_nerd_font = false in lua/config/options.lua.
  • Completion docs open with Ctrl+Enter, which most terminals don't pass through.
    Ghostty needs this (it conflicts with many common binds, such as ones in lazygit):
keybind = ctrl+enter=unbind

Keymaps

Leader is Space.
Press a group key and wait for which-key to list the rest, or search them all with <leader>sk.
Built-in Neovim keys are marked (nvim).

Editing
s / S Jump anywhere / select a syntax block (flash)
gsa gsd gsr Add / delete / replace surrounding
Alt+hjkl Move line or selection
gcc, gc Comment (nvim)
ii ai, [i ]i Indent scope as a text object, jump to its edges
]] [[ Next / previous use of the symbol
<leader>f Format
za zR zM Toggle fold / open all / close all (nvim)
Completion (insert)
Ctrl+j / Ctrl+k Open menu, move down / up
Enter, Ctrl+y Accept selection / accept ghost text
Tab Shift+Tab Next / previous item or snippet field
Ctrl+e, Ctrl+Enter Close / toggle docs
LSP
gd gD Definition / declaration
grr gri grt References / implementations / type definition
gO gW Symbols in file / workspace
K, Ctrl+s Hover / signature help in insert (nvim)
grn gra Rename / code action (nvim)
]d [d, <leader>q Next / previous diagnostic (nvim), diagnostics to loclist
Search <leader>s
<leader><leader> <leader>/ Buffers / lines in buffer
sf sg sw s. Files / grep / word under cursor / recent files
sh sk sc sd Help / keymaps / commands / diagnostics
st sn sr ss Themes (live preview) / config files / resume / all pickers
sR sF Search and replace in project / file (grug-far)
Files and windows
<leader>ee ew eR Yazi at file / in cwd / resume
<leader>er em Rename file / move it to a folder
Ctrl+hjkl, Ctrl+w HJKL Focus window / move window (nvim)
<leader>| <leader>- Split vertically / horizontally
<leader>z <leader>Z Zen mode / zoom window
gC, <leader>n Jump to pinned context / notification history
Git <leader>g
gg Lazygit
gd gc Changes and conflicts / diff commits (Tab marks two)
gh gH History of file (or selected lines) / repo
gb go Blame at cursor / inline diff overlay
gB gY Open on remote / copy its URL
]h [h, gh gH Next / previous hunk, apply / reset hunk (no leader)
Notes <leader>o
on ot New note / new TODO (takes over open tasks)
od, ]t [t Latest TODO, next / previous TODO
oo os Find / search notes
ob ol og Backlinks / links / tags
op oN oT Paste image / new from template / insert template
Enter In notes: follow link or toggle checkbox
Debug <leader>d
F5 F10 F11 F12 Start or continue / step over / into / out
db dB dC Breakpoint / conditional breakpoint / run to cursor
dw dh dv Watch / value under cursor / toggle debug view
dl dt Rerun last / stop
Toggles <leader>t
tg td tf Ghost text / completion docs / format on save
th tx tc Inlay hints / diagnostics / pinned context
tw ts ti tS Wrap / spelling / indent guides / smooth scroll
tm tp Markdown rendering / Typst preview
<leader>i2 i4 i8 it Indent width, tabs ↔ spaces (ig guess, ir retab)

Plugins

☦

   Ὤ
 Ὁ   Ν
Ι̅Ϲ̅ │ Χ̅Ϲ̅
───┼───
ΝΙ │ ΚΑ
   ☦

Εἰς δόξαν τοῦ Θεοῦ
To the glory of God

Τῇ Ὑπεραγίᾳ Θεοτόκῳ δόξα
Glory to the Most Holy Theotokos

Δόξα τῷ Θεῷ πάντων ἕνεκεν
Glory to God for all things

ΑΜΗΝ

☦