lewis6991 / hover.nvim

Hover plugin framework for Neovim
MIT License
495 stars 33 forks source link

Check on width for nvim_open_win failing #41

Open cempassi opened 11 months ago

cempassi commented 11 months ago

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