Skip to content

Commit 12f2ce7

Browse files
dakennguyenKhoa Nguyen
and
Khoa Nguyen
authored
fix: use screen size instead of win size for float (#414)
Co-authored-by: Khoa Nguyen <[email protected]>
1 parent cf9c0d6 commit 12f2ce7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/kulala/ui/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ local function open_kulala_window(buf)
109109
local request_win = vim.fn.win_findbuf(DB.get_current_buffer())[1] or vim.api.nvim_get_current_win()
110110

111111
if config.display_mode == "float" then
112-
local width = math.max(vim.api.nvim_win_get_width(0) - 10, 1)
113-
local height = math.max(vim.api.nvim_win_get_height(0) - 10, 1)
112+
local width = math.max(vim.o.columns - 10, 1)
113+
local height = math.max(vim.o.lines - 10, 1)
114114

115115
win_config = {
116116
title = "Kulala",

0 commit comments

Comments
 (0)