Tidy nvim config: per-press terminal root, trim which-key, refresh README

- Resolve LazyVim.root() when <C-/> is pressed, not once at startup
- Drop which-key spec duplicated from LazyVim defaults
- Remove no-op split_width_percentage from claudecode
- Rewrite README with keymap cheat sheet
- Add tree-sitter-cli to packages (needed to build parsers on nvim 0.12)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-14 23:23:06 +01:00
co-authored by Claude Opus 5.5
parent 6e2bbc5277
commit 6f301c67fa
5 changed files with 48 additions and 71 deletions
+35 -12
View File
@@ -1,18 +1,41 @@
# Personal Neovim Config
My personal Neovim configuration built on [LazyVim](https://github.com/LazyVim/LazyVim).
Built on [LazyVim](https://www.lazyvim.org). Everything LazyVim documents still applies —
this file only covers what's different. Press `<space>` and wait for which-key, or
`<space>?` to fuzzy-search every keymap.
## Current Setup
## Setup
- **Base**: LazyVim with Gruvbox colorscheme
- **AI**: Claude Code integration (`claudecode.nvim`)
- **UI**: Snacks dashboard (custom STP banner), Which-Key (helix preset)
- **Languages**: TypeScript, Vue, Python, Go, SQL, Tailwind, Docker
- **Extras**: mini-surround, Prettier formatting, git extras
- Colorscheme: oxocarbon
- Language extras: C/C++ (clangd), Python, Go, TypeScript/Vue/Tailwind, SQL, Docker, Clojure
- Requires `tree-sitter-cli` (parsers can't be built without it) — see `../packages.txt`
## Suggested Plugins to Add
## Custom keymaps
- **vim-fugitive** or **neogit** - deeper git workflow beyond LazyVim's built-in gitsigns
- **nvim-lint** - async linting beyond what LSP provides
- **oil.nvim** - file explorer that works like a buffer (edit filesystem like text)
- **zen-mode.nvim** - distraction-free writing/coding
| Key | Action |
|-----|--------|
| `<space>?` | Search all keymaps |
| `<C-/>` | Toggle terminal (project root, bottom of current window) |
| **AI** — `<space>a` | |
| `<space>ac` / `af` | Toggle / focus Claude Code |
| `<space>ar` / `aC` | Resume / continue last Claude session |
| `<space>ab` | Add current buffer to Claude context |
| `<space>as` | Send selection (visual) or file (explorer) to Claude |
| `<space>aa` / `ad` | Accept / deny Claude's proposed diff |
| **Git** (Neogit) — `<space>g` | |
| `<space>gg` | Neogit status |
| `<space>gc` / `gl` / `gp` | Commit / log / push |
| **Harpoon** | |
| `<space>h` | Add file to harpoon |
| `<C-e>` | Harpoon menu |
| `<C-1>`…`<C-4>` | Jump to harpoon file 1–4 |
| **Other** | |
| `<space>cu` | Undotree |
| `<C-w><space>` | Window "hydra" mode (repeat window commands) |
## Behaviour changes from LazyVim
- 4-space indent by default; C/C++ uses 2 spaces and has format-on-save **off**
(format manually with `<space>cf`)
- `nvim a b c` opens the files side by side
- Inactive windows are dimmed (vimade); markdown renders inline (markview)