feat(windows): add fillchars option for the windows (#1854)
Co-authored-by: zhangkai.zju <zhangkai.zju@bytedance.com>
This commit is contained in:
@@ -464,6 +464,7 @@ M._defaults = {
|
|||||||
windows = {
|
windows = {
|
||||||
---@alias AvantePosition "right" | "left" | "top" | "bottom" | "smart"
|
---@alias AvantePosition "right" | "left" | "top" | "bottom" | "smart"
|
||||||
position = "right",
|
position = "right",
|
||||||
|
fillchars = "eob: ",
|
||||||
wrap = true, -- similar to vim.o.wrap
|
wrap = true, -- similar to vim.o.wrap
|
||||||
width = 30, -- default % based on available width in vertical layout
|
width = 30, -- default % based on available width in vertical layout
|
||||||
height = 30, -- default % based on available height in horizontal layout
|
height = 30, -- default % based on available height in horizontal layout
|
||||||
|
|||||||
@@ -3147,6 +3147,7 @@ function Sidebar:render(opts)
|
|||||||
}),
|
}),
|
||||||
win_options = vim.tbl_deep_extend("force", base_win_options, {
|
win_options = vim.tbl_deep_extend("force", base_win_options, {
|
||||||
wrap = Config.windows.wrap,
|
wrap = Config.windows.wrap,
|
||||||
|
fillchars = Config.windows.fillchars,
|
||||||
}),
|
}),
|
||||||
size = {
|
size = {
|
||||||
width = self:get_result_container_width(),
|
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, {
|
win_options = vim.tbl_deep_extend("force", base_win_options, {
|
||||||
wrap = Config.windows.wrap,
|
wrap = Config.windows.wrap,
|
||||||
|
fillchars = Config.windows.fillchars,
|
||||||
}),
|
}),
|
||||||
position = "top",
|
position = "top",
|
||||||
size = {
|
size = {
|
||||||
|
|||||||
Reference in New Issue
Block a user