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 <leader>a... (Claude Code) and
<leader>x (CoC snippet convert) now resolve under <Space>.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
main
Amir Alexander Abdelbaki 2026-07-23 10:55:33 +02:00
parent 1135d22b39
commit ad691e69e0
2 changed files with 8 additions and 1 deletions

View File

@ -86,7 +86,7 @@ Config lives in `nvim/`. Deployed to `~/.config/nvim/` during `shell` module ins
### Keybindings ### 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 `<Space>` (`vim.g.mapleader = " "`) — Space otherwise duplicates `l` (move right) in normal mode, so it was free to claim.
#### Window navigation #### Window navigation

View File

@ -15,6 +15,13 @@ end
-- Prepend lazy's path so Neovim can find and load it before any other plugin. -- Prepend lazy's path so Neovim can find and load it before any other plugin.
vim.opt.rtp:prepend(lazypath) 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 "<leader>" in plugin `keys` specs (e.g. claudecode.nvim below)
-- at spec-registration time.
vim.g.mapleader = " "
-- ── Plugins ─────────────────────────────────────────────────────────────────── -- ── Plugins ───────────────────────────────────────────────────────────────────
require("lazy").setup({ require("lazy").setup({
-- CyberQueer colorscheme loaded from the local dotfiles tree (not from GitHub) -- CyberQueer colorscheme loaded from the local dotfiles tree (not from GitHub)