hood / popui.nvim

NeoVim UI sweetness.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error about window being too small?

ThomasMarx92 opened this issue · comments

Generally popui works fine with all my files and I am happy about it!
In my .tex document however, where I have >100 warnings (chktex linting is very sensitive) I get the following error:

E5108: Error executing lua .../.local/share/nvim/plugged/popui.nvim/lua/popui/core.lua:54: unable to create the config, your window is too
small, please zoom out
stack traceback:

[C]: in function 'error'                                          .../.local/share/nvim/plugged/popui.nvim/lua/popui/core.lua:54: in function 'validatePopupSize'                                            .../.local/share/nvim/plugged/popui.nvim/lua/popui/core.lua:71: in function 'getListWindowConfiguration'                          .../.local/share/nvim/plugged/popui.nvim/lua/popui/core.lua:399: in function 'spawnListPopup'                                                ...m/plugged/popui.nvim/lua/popui/diagnostics-navigator.lua:11: in function <...m/plugged/popui.nvim/lua/popui/diagnostics-navigator.lua:3> [string ":lua"]:1: in main chunk

Zooming out with + + "-" does not help.
Any suggestions besides having less warnings?

Yes, as a user myself I get the same error very often and I'm planning to fix it ASAP. It's basically caused by lines' lengths exceeding the current window's width. I should probably disable this invariant and let the content overflow, while clipping the popup width (same goes for height).

It should've been fixed by 6017d97, let me know if it works for you so I can close this issue. 😄

Perfect! :)