Skip to content

Commit 84d9ae0

Browse files
committed
fix(mentions): letter a appended when triggering mentions
1 parent 44d22ba commit 84d9ae0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/opencode/ui/ui.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ function M.focus_input(opts)
131131
pcall(vim.api.nvim_win_set_cursor, 0, state.last_input_window_position)
132132
end
133133
if vim.api.nvim_get_current_win() == windows.input_win and opts.start_insert then
134-
vim.api.nvim_feedkeys('a', 'n', false)
134+
if vim.fn.mode() ~= 'i' then
135+
vim.api.nvim_feedkeys('a', 'n', false)
136+
end
135137
end
136138
end
137139

0 commit comments

Comments
 (0)