Commit 7ac2b91
committed
fix: don't return empty hover
Nvim show me an error(since:
neovim/neovim#34789), when I hover an symbol
whose definition cannot be found by luals
```
**/neovim/runtime/lua/vim/lsp/util.lua:1685: 'width' key must be a
positive Integer
```
To reprodunce, hover on a with this file
```lua
---@type a
```
Haven't reproduced with other lsp but I think it's harmless to PR here.1 parent c2b2826 commit 7ac2b91
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
372 | 376 | | |
373 | 377 | | |
374 | | - | |
| 378 | + | |
375 | 379 | | |
376 | 380 | | |
377 | 381 | | |
| |||
0 commit comments