lewis6991/hover.nvim

Internal functions to focus/expand to preview window are broken

Opened this issue · 1 comments

This commit deleted a variable needed for checking if a hover should be focused/expanded to the preview window

Here

However, the code to check if a hover should be focused/a preview windows should be opened, still expects this variable to exits

local win = find_window_by_var('hover', bufnr)

local function find_window_by_var(name, value)
for _, win in ipairs(api.nvim_list_wins()) do
if npcall(api.nvim_win_get_var, win, name) == value then
return win
end
end
end

I saw that #52 was closed as not planned, so maybe this isn't a feature that the plugin expects to provide and this could is an oversight? Or would a PR adding this functionality back be welcomed?

@TheLeoP I made exactly such a PR quite a while ago - #59