Skip to content

Commit bd77567

Browse files
committed
feat(copilot): update key mappings for accept word/line
- Changed key mappings for accepting word and line inputs. - Updated documentation to reflect new key bindings. - Improved user experience with clearer key assignments.
1 parent 7378f8d commit bd77567

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

lazy-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
3232
"rustaceanvim": { "branch": "master", "commit": "66398662c07d265b226897500ed50eafba3dffb4" },
3333
"snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" },
34-
"timber.nvim": { "branch": "main", "commit": "aac3a12753652a60955d3178b75fdb6c247b9f7d" },
34+
"timber.nvim": { "branch": "main", "commit": "73efb34816264695bfe242281cce3baf2c7dd895" },
3535
"treewalker.nvim": { "branch": "main", "commit": "ae229700e1cce34198280f588568dc49c52d9eb1" },
3636
"ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" },
3737
"vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" },

lua/plugins/blink.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ 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", "fallback" },
101-
["<c-k>"] = { "select_prev", "fallback" },
100+
["<c-k>"] = false,
102101
},
103102
signature = {
104103
enabled = true,

lua/plugins/copilot.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ return {
2424
auto_trigger = true,
2525
keymap = {
2626
accept = "<c-]>",
27-
accept_word = "<c-l>",
28-
accept_line = "<c-j>",
29-
next = nil,
30-
prev = nil,
27+
accept_word = "<c-j>",
28+
accept_line = "<c-k>",
29+
next = "<c-l>",
30+
prev = "<c-h>",
3131
dismiss = "<c-e>",
3232
},
3333
},

readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,10 @@ Random features added.
266266

267267
- `<c-]>` accept
268268
- `<c-e>` dismiss
269-
- `<c-l>` accept word
270-
- `<c-s-l>` accept line
269+
- `<c-j>` accept word
270+
- `<c-k>` accept line
271+
- `<c-h>` show previous
272+
- `<c-l>` show next
271273

272274
### Logging
273275

0 commit comments

Comments
 (0)