diff --git a/README.md b/README.md index a360c6d..d63b872 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,8 @@ Place machine-specific or secret configuration in `~/.config/.user-dots/nvim/loc | `s` / `S` | Leap Motion (Normal/Window) | | `ys` / `ds` / `cs` | Surround (Add/Delete/Change) | | `gx` / `gX` | Open URL under cursor (Gx.nvim) | -| `` | Advance snippet → apply NES suggestion → fallback | +| `` *(insert)* | Advance snippet → NES suggestion → native inline completion → fallback | +| `` *(normal)* | Jump to / apply Sidekick NES suggestion | | `aa` | Toggle Sidekick AI CLI terminal | | `as` | Select AI tool (Sidekick) | | `` *(picker)* | Send picker selection to active AI CLI session | diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 8b64d85..c359120 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -292,6 +292,13 @@ end, { desc = "Neovim News" }) ---------------------------------------------------------- +-- Sidekick NES: accept next-edit suggestion in normal mode +vim.keymap.set("n", "", function() + require("sidekick").nes_jump_or_apply() +end, { desc = "Apply Sidekick NES Suggestion" }) + +---------------------------------------------------------- + -- Leap Keymaps vim.keymap.set({ "n", "x", "o" }, "", "(leap)") vim.keymap.set("n", "S", "(leap-from-window)") diff --git a/lua/plugins.lua b/lua/plugins.lua index 0a96171..1c783da 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -395,6 +395,9 @@ lazyload.on_vim_enter(function() }, }) + -- Enable native inline completion (ghost text in insert mode) + vim.lsp.inline_completion.enable() + -- Mini.ai vim.pack.add({ { src = "https://github.com/echasnovski/mini.ai", name = "mini.ai" } })