Files
adamfandClaude Opus 5.5 6f301c67fa 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]>
2026-10-14 23:23:06 +01:00

15 lines
684 B
Lua

-- Keymaps are automatically loaded on the VeryLazy event
-- 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.
-- 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" })