hover.nvim icon indicating copy to clipboard operation
hover.nvim copied to clipboard

Check on width for nvim_open_win failing

Open cempassi opened this issue 2 years ago • 1 comments

In lua/hover/util.lua, there is a check to see if there is a width, and if not do some things to define one. https://github.com/lewis6991/hover.nvim/blob/a173256a9dba938e876ceb4bb5d2742f8866e349/lua/hover/util.lua#L202-L208

I'm currently using Hover with nvim-jdtls. On java files, on symbols with no return from lsp, width is still at 0, resulting in an error every time I use K with the following message: Error executing vim.schedule lua callback: ....hover.nvim/lua/hover/async.lua:37: The coroutine failed with this message: .../hover.nvim/lua/hover/util.lua:316: 'width' key must be a positive Integer

vim.lsp.buf.hover() just says 'no information available' with no errors

cempassi avatar Oct 19 '23 05:10 cempassi

A similar issue occurred on the Python Pyrefly server, resulting in the error: 'height' key must be a positive integer.

HuaDeity avatar Jun 23 '25 13:06 HuaDeity