diff --git a/denops/aider/bufferOperation.ts b/denops/aider/bufferOperation.ts index 436e494..dabc4c1 100644 --- a/denops/aider/bufferOperation.ts +++ b/denops/aider/bufferOperation.ts @@ -119,6 +119,7 @@ export async function sendPromptByBuffer(denops: Denops, openBufferType: BufferL await denops.cmd("bdelete!"); if (openBufferType === "floating") { + await denops.cmd("AiderRun"); await sendPromptFromFloatingWindow(denops, bufferContent); } else { await sendPromptFromSplitWindow(denops, bufferContent); @@ -162,7 +163,7 @@ export async function openFloatingWindowWithSelectedCode( await n.nvim_buf_set_keymap(denops, bufnr, "n", "q", "AiderHideVisualSelectFloatingWindow", { silent: true, }); - await n.nvim_buf_set_keymap(denops, bufnr, "n", "", "AiderSendPromptByBufferAiderRun", { + await n.nvim_buf_set_keymap(denops, bufnr, "n", "", "AiderSendPromptByBuffer", { silent: true, }); }