feat: make confirm window large (#1605)
This commit is contained in:
@@ -7,18 +7,18 @@ local M = {}
|
|||||||
|
|
||||||
function M.confirm(message, callback)
|
function M.confirm(message, callback)
|
||||||
local focus_index = 2 -- 1 = Yes, 2 = No
|
local focus_index = 2 -- 1 = Yes, 2 = No
|
||||||
local yes_button_pos = { 18, 23 }
|
local yes_button_pos = { 23, 28 }
|
||||||
local no_button_pos = { 28, 32 }
|
local no_button_pos = { 33, 37 }
|
||||||
|
|
||||||
local BUTTON_NORMAL = Highlights.BUTTON_DEFAULT
|
local BUTTON_NORMAL = Highlights.BUTTON_DEFAULT
|
||||||
local BUTTON_FOCUS = Highlights.BUTTON_DEFAULT_HOVER
|
local BUTTON_FOCUS = Highlights.BUTTON_DEFAULT_HOVER
|
||||||
|
|
||||||
local popup = Popup({
|
local popup = Popup({
|
||||||
position = {
|
position = {
|
||||||
row = vim.o.lines - 5,
|
row = vim.o.lines - 9,
|
||||||
col = "50%",
|
col = "50%",
|
||||||
},
|
},
|
||||||
size = { width = 50, height = 7 },
|
size = { width = 60, height = 9 },
|
||||||
enter = true,
|
enter = true,
|
||||||
focusable = true,
|
focusable = true,
|
||||||
border = {
|
border = {
|
||||||
@@ -46,7 +46,7 @@ function M.confirm(message, callback)
|
|||||||
"",
|
"",
|
||||||
" " .. message,
|
" " .. message,
|
||||||
"",
|
"",
|
||||||
" " .. " Yes No ",
|
" " .. " Yes No ",
|
||||||
"",
|
"",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user