RishabhRD / popfix

Neovim lua API for highly extensible popup window
83 stars 3 forks source link

how can we make the popup window size dynamic #11

Open cambp4 opened 3 years ago

cambp4 commented 3 years ago

hi, I am using your lsp plugin but I thought this was more apropriate to post here, we can set the size of a window but when the window is too small the popup does not appear. can we set some sort of dynamic layout so that it would still appear but smaller ? or can we set a size relative to the size of the window that is currently open ?

RishabhRD commented 3 years ago

Hi, I realised the problem few days back while using large font size. Sometimes absolute size is not what we want. It is not currently supported but I am working on it. Mostly it should take a day or two. My idea is to provide an option to specify whether provided dimensions are absolute or relative (in percentage) based on that it would draw the popup.

RishabhRD commented 3 years ago

@cambp4 I would add the PR tomorrow. You can track the progress there. Hopefully PR should be merged in few hours.

cambp4 commented 3 years ago

nice :) your project is super cool, I am going to follow it closely