linrongbin16/fzfx.nvim

win_opts = { relative = 'win' } is buggy

Closed this issue · 2 comments

Trying to understand the root cause of #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:

output.mp4

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.

hi @savchenko ,

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