diff --git a/MIGRATION_PLAN.md b/MIGRATION_PLAN.md index e85996d..17feb7a 100644 --- a/MIGRATION_PLAN.md +++ b/MIGRATION_PLAN.md @@ -57,6 +57,7 @@ Source of truth for the step-by-step rebuild. Keep this concise and up to date. ## Phase 3.3 — Core completion stack - [x] Add core completion stack: `nvim-cmp`, `cmp-nvim-lsp`, `cmp-buffer`, `cmp-path`, `LuaSnip` +- [x] Disable auto-selection in nvim-cmp (require explicit confirm) ## Phase 3.4 — Project‑local configuration (native exrc) - [x] Confirm scope and priorities for this subphase diff --git a/README.md b/README.md index c547b80..2a8ac3c 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,7 @@ Record every decision here with a short rationale. Append new entries; do not re - **Colorscheme integration**: Native Neovim colorscheme at `colors/paper-tonic-modern.lua` - **No overrides needed**: Modern implementation doesn't require separate override file - 2025-12-12: Added `KEYMAPS.md` + `:KeymapsGuide` floating viewer to document every configured keymap (global + plugin-specific) grouped by source file. +- 2025-12-12: nvim-cmp updated to disable auto-selection; confirm requires explicit item selection. ## Project-Local Configuration (design) diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 28094bb..bb3cbc7 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -20,7 +20,7 @@ return { }, mapping = cmp.mapping.preset.insert({ [""] = cmp.mapping.complete(), - [""] = cmp.mapping.confirm({ select = true }), -- Auto-select first item + [""] = cmp.mapping.confirm({ select = false }), [""] = cmp.mapping.select_next_item(), [""] = cmp.mapping.select_prev_item(), [""] = cmp.mapping.abort(), @@ -31,7 +31,8 @@ return { { name = "path", group_index = 2 }, { name = "buffer", group_index = 2 }, }), - completion = { completeopt = "menu,menuone,noinsert" }, -- Auto-select first item + preselect = cmp.PreselectMode.None, + completion = { completeopt = "menu,menuone,noinsert,noselect" }, window = { completion = cmp.config.window.bordered(), documentation = cmp.config.window.bordered(), diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index fee8561..26ad56b 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -771,3 +771,5 @@ ahrefs #engo Tengo/! Trengo +Hostinger's +hPanel diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index cc3af20..b293aeb 100644 Binary files a/spell/en.utf-8.add.spl and b/spell/en.utf-8.add.spl differ