chore(sidebar): remove emoji (#467)
This commit is contained in:
parent
65e1e178f5
commit
054695cc63
@ -1239,7 +1239,7 @@ function Sidebar:create_input()
|
|||||||
--- prevent the cursor from jumping to the bottom of the
|
--- prevent the cursor from jumping to the bottom of the
|
||||||
--- buffer at the beginning
|
--- buffer at the beginning
|
||||||
self:update_content("", { focus = true, scroll = false })
|
self:update_content("", { focus = true, scroll = false })
|
||||||
self:update_content(content_prefix .. "🔄 **Generating response ...**\n")
|
self:update_content(content_prefix .. "**Generating response ...**\n")
|
||||||
|
|
||||||
local content = table.concat(Utils.get_buf_lines(0, -1, self.code.bufnr), "\n")
|
local content = table.concat(Utils.get_buf_lines(0, -1, self.code.bufnr), "\n")
|
||||||
local content_with_line_numbers = Utils.prepend_line_number(content)
|
local content_with_line_numbers = Utils.prepend_line_number(content)
|
||||||
@ -1315,12 +1315,12 @@ function Sidebar:create_input()
|
|||||||
---@type AvanteCompleteParser
|
---@type AvanteCompleteParser
|
||||||
local on_complete = function(err)
|
local on_complete = function(err)
|
||||||
if err ~= nil then
|
if err ~= nil then
|
||||||
self:update_content("\n\n🚨 Error: " .. vim.inspect(err), { stream = true, scroll = true })
|
self:update_content("\n\nError: " .. vim.inspect(err), { stream = true, scroll = true })
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Execute when the stream request is actually completed
|
-- Execute when the stream request is actually completed
|
||||||
self:update_content("\n\n🎉🎉🎉 **Generation complete!** Please review the code suggestions above.", {
|
self:update_content("\n\n**Generation complete!** Please review the code suggestions above.", {
|
||||||
stream = true,
|
stream = true,
|
||||||
scroll = true,
|
scroll = true,
|
||||||
callback = function()
|
callback = function()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user