Skip to content

Commit bb8add1

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 bb8add1

3 files changed

Lines changed: 7 additions & 7 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/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 = "<m-l>",
28+
accept_line = "<m-j>",
29+
next = false,
30+
prev = false,
3131
dismiss = "<c-e>",
3232
},
3333
},

readme.md

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

267267
- `<c-]>` accept
268268
- `<c-e>` dismiss
269-
- `<c-l>` accept word
270-
- `<c-s-l>` accept line
269+
- `<m-l>` accept word
270+
- `<m-j>` accept line
271271

272272
### Logging
273273

0 commit comments

Comments
 (0)