fix(input): move hints to bottom right (#533)

Uses vim.fn.winline() to determine correct hint buffer position
This commit is contained in:
Will Lynas
2024-09-04 21:27:08 +01:00
committed by GitHub
parent 19a7d84d1e
commit 8c021f3691
2 changed files with 17 additions and 3 deletions

View File

@@ -514,4 +514,12 @@ function M.debounce(func, delay)
end
end
function M.winline(winid)
local current_win = vim.api.nvim_get_current_win()
vim.api.nvim_set_current_win(winid)
local line = vim.fn.winline()
vim.api.nvim_set_current_win(current_win)
return line
end
return M