Skip to content

Commit 1f9089b

Browse files
committed
docs(suggestion): mention accept_word and accept_line
1 parent 372ed1b commit 1f9089b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ require('copilot').setup({
9191
auto_trigger = false,
9292
debounce = 75,
9393
keymap = {
94-
accept = "<M-l>",
95-
next = "<M-]>",
96-
prev = "<M-[>",
97-
dismiss = "<C-]>",
94+
accept = "<M-l>",
95+
accept_word = false,
96+
accept_line = false,
97+
next = "<M-]>",
98+
prev = "<M-[>",
99+
dismiss = "<C-]>",
98100
},
99101
},
100102
filetypes = {

plugin/copilot.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ local completion_store = {
22
[""] = { "auth", "panel", "suggestion", "status", "toggle", "version" },
33
auth = { "signin", "signout" },
44
panel = { "accept", "jump_next", "jump_prev", "open", "refresh" },
5-
suggestion = { "accept", "dismiss", "next", "prev", "toggle_auto_trigger" },
5+
suggestion = { "accept", "accept_word", "accept_line", "dismiss", "next", "prev", "toggle_auto_trigger" },
66
}
77

88
vim.api.nvim_create_user_command("Copilot", function(opts)

0 commit comments

Comments
 (0)