diff --git a/docs/md/editors.md b/docs/md/editors.md index fa2daa6..4567d2f 100644 --- a/docs/md/editors.md +++ b/docs/md/editors.md @@ -86,7 +86,7 @@ Config lives in `nvim/`. Deployed to `~/.config/nvim/` during `shell` module ins ### Keybindings -All custom bindings live in `nvim/init.lua`. Leader is the Vim default (`\`), unchanged. +All custom bindings live in `nvim/init.lua`. Leader is `` (`vim.g.mapleader = " "`) — Space otherwise duplicates `l` (move right) in normal mode, so it was free to claim. #### Window navigation diff --git a/nvim/init.lua b/nvim/init.lua index 7a16f7a..06b7385 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -15,6 +15,13 @@ end -- Prepend lazy's path so Neovim can find and load it before any other plugin. vim.opt.rtp:prepend(lazypath) +-- ── Leader ──────────────────────────────────────────────────────────────────── +-- Space is otherwise a no-op duplicate of "l" (move right) in normal mode, so +-- claiming it as leader costs nothing. Must be set before lazy.setup(), since +-- lazy resolves "" in plugin `keys` specs (e.g. claudecode.nvim below) +-- at spec-registration time. +vim.g.mapleader = " " + -- ── Plugins ─────────────────────────────────────────────────────────────────── require("lazy").setup({ -- CyberQueer colorscheme loaded from the local dotfiles tree (not from GitHub)