fix: use the original prompts (#397)

This commit is contained in:
yetone
2024-08-30 22:21:50 +08:00
committed by GitHub
parent 5cf85d59bd
commit 104484f17c
9 changed files with 216 additions and 135 deletions

View File

@@ -407,8 +407,11 @@ function Selection:create_editing_input()
end, 0)
end
local filetype = api.nvim_get_option_value("filetype", { buf = code_bufnr })
Llm.stream({
file_content = code_content,
code_lang = filetype,
selected_code = self.selection.content,
instructions = input,
mode = "editing",