From ad691e69e0f2108997dfa9acdfa0cf3240c37530 Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 23 Jul 2026 10:55:33 +0200 Subject: [PATCH] feat(nvim): set leader to Space Space is otherwise a no-op duplicate of "l" in normal mode, making it free to claim without losing any real functionality. Verified live against the installed plugin set that a... (Claude Code) and x (CoC snippet convert) now resolve under . Co-Authored-By: Claude Sonnet 5 --- docs/md/editors.md | 2 +- nvim/init.lua | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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)