more space for the window

This commit is contained in:
Yannick Reiß 2024-02-19 16:55:46 +01:00
parent afa326e426
commit a2f6bc737a
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
1 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ local function open_window()
-- calculate our floating window size
local win_height = math.ceil(height * 0.8 - 4)
local win_width = math.ceil(width * 0.8)
local win_width = math.ceil(width * 0.9)
-- and its starting position
local row = math.ceil((height - win_height) / 2 - 1)
@ -154,11 +154,11 @@ function M.lookup()
local current_line = 4
for x = 1, #dates do
api.nvim_buf_set_lines(buf, current_line, -1, false, { " Title: " .. titles[x] })
api.nvim_buf_set_lines(buf, current_line, -1, false, { " Title: " .. titles[x] })
current_line = current_line + 1
api.nvim_buf_set_lines(buf, current_line, -1, false, { " Date: " .. dates[x] })
api.nvim_buf_set_lines(buf, current_line, -1, false, { " Date: " .. dates[x] })
current_line = current_line + 1
api.nvim_buf_set_lines(buf, current_line, -1, false, { " Website: " .. links[x] })
api.nvim_buf_set_lines(buf, current_line, -1, false, { " Website: " .. links[x] })
current_line = current_line + 1
api.nvim_buf_set_lines(buf, current_line, -1, false, { "" })
current_line = current_line + 2