Skip to content

Commit 0ebe61b

Browse files
committed
feat(copilot): update keybindings
- Added new keybindings for navigating selections. - Updated keybindings for accepting suggestions in Copilot. - Revised documentation to reflect new keybindings. - Improved user experience with more intuitive shortcuts.
1 parent 6910ad0 commit 0ebe61b

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

lua/plugins/blink.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ return {
9797
["<c-e>"] = { "hide", "show", "fallback" },
9898
["<c-n>"] = { "select_next", "show", "fallback" },
9999
["<c-p>"] = { "select_prev", "show", "fallback" },
100+
["<c-j>"] = { "select_next", "show", "fallback" },
101+
["<c-k>"] = { "select_prev", "show", "fallback" },
100102
},
101103
signature = {
102104
enabled = true,

lua/plugins/copilot.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ return {
2626
auto_trigger = true,
2727
keymap = {
2828
accept = "<c-]>",
29-
accept_word = "<c-j>",
30-
accept_line = "<c-k>",
31-
next = "<c-l>",
32-
prev = "<c-h>",
29+
accept_word = "<a-l>",
30+
accept_line = "<a-j>",
31+
next = "<a-n>",
32+
prev = "<a-p>",
3333
dismiss = "<c-e>",
3434
},
3535
},

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ Random features added.
277277

278278
- `<c-]>` accept
279279
- `<c-e>` dismiss
280-
- `<c-j>` accept word
281-
- `<c-k>` accept line
282-
- `<c-h>` show previous
283-
- `<c-l>` show next
280+
- `<a-l>` accept word
281+
- `<a-j>` accept line
282+
- `<a-n>` show next
283+
- `<a-p>` show previous
284284

285285
### Logging
286286

0 commit comments

Comments
 (0)