feat(windows): add fillchars option for the windows (#1854)

Co-authored-by: zhangkai.zju <zhangkai.zju@bytedance.com>
This commit is contained in:
zenk
2025-04-11 12:28:38 +08:00
committed by GitHub
parent 51bad68087
commit e295fe82f0
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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 = {