From fcd7a82ff77861418f5886a472d3f59af258d5c1 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 20 Aug 2024 17:51:14 +0800 Subject: [PATCH] feat: use devicon instead of emoji (#111) --- lua/avante/sidebar.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 659e2de..a9cc3ac 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -767,11 +767,11 @@ function Sidebar:render() local code_file_fullpath = api.nvim_buf_get_name(self.code.buf) local code_filename = fn.fnamemodify(code_file_fullpath, ":t") - local input_label = string.format(" 🙋 with %s %s (: switch focus): ", icon, code_filename) + local input_label = string.format(" 󱜸 Chat with %s %s (: switch focus): ", icon, code_filename) if self.code.selection ~= nil then input_label = string.format( - " 🙋 with %s %s(%d:%d) (: switch focus): ", + " 󱜸 Chat with %s %s(%d:%d) (: switch focus): ", icon, code_filename, self.code.selection.range.start.line, @@ -803,7 +803,7 @@ function Sidebar:render() buf = self.view.buf, autoscroll = true, border_label = { - text = "💬 Avante Chat", + text = "󰭻 Avante Chat", align = "center", }, padding = { @@ -820,7 +820,7 @@ function Sidebar:render() id = "selected_code", lines = self.code.selection and self.code.selection.content or "", border_label = { - text = "💻 Selected Code" + text = " Selected Code" .. ( selected_code_lines_count > selected_code_max_lines_count and " (Show only the first " .. tostring(selected_code_max_lines_count) .. " lines)"