feat(window): add height&width option for editing window (#1913)
Co-authored-by: zhangkai.zju <zhangkai.zju@bytedance.com>
This commit is contained in:
@@ -284,6 +284,8 @@ function Selection:create_editing_input(request, line1, line2)
|
|||||||
cancel_callback = function() self:close_editing_input() end,
|
cancel_callback = function() self:close_editing_input() end,
|
||||||
win_opts = {
|
win_opts = {
|
||||||
border = Config.windows.edit.border,
|
border = Config.windows.edit.border,
|
||||||
|
height = Config.windows.edit.height,
|
||||||
|
width = Config.windows.edit.width,
|
||||||
title = { { "Avante edit selected block", "FloatTitle" } },
|
title = { { "Avante edit selected block", "FloatTitle" } },
|
||||||
},
|
},
|
||||||
start_insert = Config.windows.edit.start_insert,
|
start_insert = Config.windows.edit.start_insert,
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ function PromptInput:show_shortcuts_hints()
|
|||||||
win = self.winid,
|
win = self.winid,
|
||||||
width = width,
|
width = width,
|
||||||
height = 1,
|
height = 1,
|
||||||
row = math.min(buf_height, win_height),
|
row = win_height,
|
||||||
col = math.max(win_width - width, 0),
|
col = math.max(win_width - width, 0),
|
||||||
style = "minimal",
|
style = "minimal",
|
||||||
border = "none",
|
border = "none",
|
||||||
|
|||||||
Reference in New Issue
Block a user