Skip to content

Commit 04be17f

Browse files
committed
fix(context_completion): get key for new keymaps
1 parent 2f1eddf commit 04be17f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/opencode/ui/completion/context.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ local context_source = {
206206

207207
local _, col = unpack(vim.api.nvim_win_get_cursor(0))
208208
local line = vim.api.nvim_get_current_line()
209-
if col > 0 and line:sub(col, col) == config.keymap.window.context_items then
209+
local key = config.get_key_for_function('input_window', 'context_items')
210+
if col > 0 and line:sub(col, col) == key then
210211
line = line:sub(1, col - 1) .. line:sub(col + 1)
211212
input_win.set_current_line(line)
212213
vim.fn.feedkeys(vim.api.nvim_replace_termcodes('a', true, false, true), 'n')

0 commit comments

Comments
 (0)