Skip to content

Mechanism for setting options in popup window #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mawkler opened this issue Apr 8, 2025 · 2 comments
Open

Mechanism for setting options in popup window #3

mawkler opened this issue Apr 8, 2025 · 2 comments

Comments

@mawkler
Copy link

mawkler commented Apr 8, 2025

Thanks for making this awesome plugin!

I would like to disable 'wrap' inside the floating error window since it messes with the rendering (for example, the concealed link takes up multiple liens). This is what it looks like with 'wrap' set:

Image

I would like some mechanism that lets me set options for the popup window's buffer. Perhaps a custom buftype for the window, or an autocmd like PrettyTSErrorWindowEnter or similar.

Also, with Neovim's builtin vim.diagnostic.open_float() you can call it twice to move the cursor inside the floating window (useful for yanking error messages for instance). It would be awesome if I could do the same with this plugin's error window.

@youyoumu
Copy link
Owner

Hello, sorry for the late reply (i have been stopped messing around with my dotfiles for a while 😄 )

The floating window doesn't have warp option enabled, so i'm not sure with your issue. This is what it looks like without wrap

recording_2025-05-15_20-08-02.mp4

And this is with wrap

recording_2025-05-15_20-09-12.mp4

I just pushed some changes to control this behavior with config and it still disabled by default. c5de1a5

As for moving the cursor to floating window, you can use <C-w>w (:h CTRL-W_w) . Is it good enough?

@mawkler
Copy link
Author

mawkler commented May 19, 2025

Thanks for the fix, I'll give it a try!

As for moving the cursor to floating window, you can use <C-w>w (:h CTRL-W_w) . Is it good enough?

That is possible but to me it makes sense to be compatible with Neovim's built-in behavior of vim.diagnostic.open_float() for consistency, since that is what this plugin is replacing 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants