linrongbin16 / fzfx.nvim

A Neovim fuzzy finder that updates on every keystroke.
https://linrongbin16.github.io/fzfx.nvim/
MIT License
123 stars 5 forks source link

win_opts = { relative = 'win' } is buggy #682

Closed savchenko closed 5 months ago

savchenko commented 6 months ago

Trying to understand the root cause of https://github.com/linrongbin16/fzfx.nvim/issues/603, I have found that relative = 'win' causes plugin to recursively reduce size of the popup when enabling/disabling the preview:

popup = {
    win_opts = {
        relative = 'win'
    }
}

It looks pretty wild :) See below:

https://github.com/linrongbin16/fzfx.nvim/assets/300146/e73b2081-560c-4fca-991c-d8b0b4c35f79

savchenko commented 6 months ago

Also, with win_opts = { relative = 'editor' }, first call draws the the popup as expected - at the centre. However disabling the preview immediately moves pop-up to the NW corner.

linrongbin16 commented 5 months ago

hi @savchenko ,

I fixed this issue in #691 , please have a try!