From a8baee4354b0474ca06f047e2aac69d22e1ccd87 Mon Sep 17 00:00:00 2001 From: brook hong Date: Tue, 18 Mar 2025 19:40:50 +0800 Subject: [PATCH] fix: header text in case of no nvim-web-devicons setup and show current provider/model in it (#1617) --- lua/avante/sidebar.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 8e6b7bf..6845a61 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -1419,12 +1419,14 @@ function Sidebar:render_header(winid, bufnr, header_text, hl, reverse_hl) end if Config.windows.sidebar_header.rounded then - winbar_text = winbar_text .. "%#" .. reverse_hl .. "#" .. "" .. "%#" .. hl .. "#" + winbar_text = winbar_text .. "%#" .. reverse_hl .. "#" .. Utils.icon("", "『") .. "%#" .. hl .. "#" else winbar_text = winbar_text .. "%#" .. hl .. "#" end winbar_text = winbar_text .. header_text - if Config.windows.sidebar_header.rounded then winbar_text = winbar_text .. "%#" .. reverse_hl .. "#" end + if Config.windows.sidebar_header.rounded then + winbar_text = winbar_text .. "%#" .. reverse_hl .. "#" .. Utils.icon("", "』") + end winbar_text = winbar_text .. "%#Normal#" if Config.windows.sidebar_header.align == "center" then winbar_text = winbar_text .. "%=" end api.nvim_set_option_value("winbar", winbar_text, { win = winid })