From e295fe82f0714188615a524604bdaccd266ced35 Mon Sep 17 00:00:00 2001 From: zenk Date: Fri, 11 Apr 2025 12:28:38 +0800 Subject: [PATCH] feat(windows): add fillchars option for the windows (#1854) Co-authored-by: zhangkai.zju --- lua/avante/config.lua | 1 + lua/avante/sidebar.lua | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lua/avante/config.lua b/lua/avante/config.lua index 43b38b9..51bffc4 100644 --- a/lua/avante/config.lua +++ b/lua/avante/config.lua @@ -464,6 +464,7 @@ M._defaults = { windows = { ---@alias AvantePosition "right" | "left" | "top" | "bottom" | "smart" position = "right", + fillchars = "eob: ", wrap = true, -- similar to vim.o.wrap width = 30, -- default % based on available width in vertical layout height = 30, -- default % based on available height in horizontal layout diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 14cefb7..7b5db64 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -3147,6 +3147,7 @@ function Sidebar:render(opts) }), win_options = vim.tbl_deep_extend("force", base_win_options, { wrap = Config.windows.wrap, + fillchars = Config.windows.fillchars, }), size = { width = self:get_result_container_width(), @@ -3230,6 +3231,7 @@ function Sidebar:create_selected_files_container() }), win_options = vim.tbl_deep_extend("force", base_win_options, { wrap = Config.windows.wrap, + fillchars = Config.windows.fillchars, }), position = "top", size = {