OlegGulevskyy / better-ts-errors.nvim

MIT License
117 stars 7 forks source link

Popup window is too narrow #13

Closed icholy closed 7 months ago

icholy commented 8 months ago

Description

The popup window isn't wide enough to show the entire error:

image

Steps to reproduce

  1. Opened the popup for a deeply nested error
  2. The error contents were cut off.

Expected behavior

A configuration option to make the window larger.

Environment

OlegGulevskyy commented 7 months ago

Do you move Neovim window from one monitor to another maybe? I have the same when my actual nvim window changes size, the modal with error doesn't react accordingly. It gets fixed once nvim reopens. I know it's far away from a good solution but is this your case though?

icholy commented 7 months ago

Yeah that's the issue. Seems like the width is being computed at startup instead of when the popup is opened.