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
+10 -11
View File
@@ -2,14 +2,13 @@
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
-- Terminal: open relative to current window (don't squash explorer) and smaller
local terminal_opts = {
cwd = LazyVim.root(),
win = { position = "bottom", height = 0.3, relative = "win" },
}
vim.keymap.set({ "n", "t" }, "<c-/>", function()
Snacks.terminal(nil, terminal_opts)
end, { desc = "Terminal (Root Dir)" })
vim.keymap.set({ "n", "t" }, "<c-_>", function()
Snacks.terminal(nil, terminal_opts)
end, { desc = "which_key_ignore" })
-- Terminal: open relative to current window (don't squash explorer) and smaller.
-- Root is resolved on each press so it follows the current buffer's project.
local function terminal()
Snacks.terminal(nil, {
cwd = LazyVim.root(),
win = { position = "bottom", height = 0.3, relative = "win" },
})
end
vim.keymap.set({ "n", "t" }, "<c-/>", terminal, { desc = "Terminal (Root Dir)" })
vim.keymap.set({ "n", "t" }, "<c-_>", terminal, { desc = "which_key_ignore" })