LSP-copilot
LSP-copilot copied to clipboard
popup width
Is there a way to change the popup width? So far I have been unable to find a setting. On my system it always shows up too narrow and the completions are cut off. My sublime window in this screenshot is over 3000 pixels wide so plenty of space for it to display the full completion if it just made the popup wider.
The short answer, not currently. The long answer is it is possible to make this user a user configuration. But not sure if it is really a high priority. But I do see how this can make it not as usable.
Just a note, you could use
"settings": {
"completion_style": "phantom"
}
to have a VSCode-like completion style. But please note it is a bit buggy
After months, releasing this within the week
Just a note, you could use
"settings": { "completion_style": "phantom" }
to have a VSCode-like completion style. But please note it is a bit buggy
Can the "phantom" be setup with a different background color, can the "phantom" use the upright style?
@WangWei90 I don't think we set the background colour explicitly, but since the package follows the best practices it should be possible to customize it if needed.
I'm not sure what the upright style means though. But if it is about styling, then it should be possible to customize it too.
Thank you~ @timfjord
I will try to test this later.
@cotcomsol Is this still desired?
It would definitely be helpful for me. I find that most of the time the completion is cut off and so mostly useless.
or maybe we show it when the time elapses a thrshold
Wrong thread :)
Hey @TerminalFi are you going to review https://github.com/TerminalFi/LSP-copilot/pull/178 ? I see you close this issue without merging that PR.
Hmm... I guess #178 won't help. The popup width is provided as an argument to a ST plugin API.
It helps, I'll post example. I've tested this already.
It helps, I'll post example. I've tested this already.
Oops, I thought it's because of https://github.com/TerminalFi/LSP-copilot/blob/fa70eafc1916737bf623480497ef34dcae61d1e1/plugin/ui/completion.py#L244
It helps, I'll post example. I've tested this already.
Oops, I thought it's because of https://github.com/TerminalFi/LSP-copilot/blob/fa70eafc1916737bf623480497ef34dcae61d1e1/plugin/ui/completion.py#L244
That's just passed as CSS I believe. But either way, I'll post example
Actually, I had local changes!
We do need to expose max_width and max_height as well.
@jfcherng we can either set higher defaults or create new settings
"completion_popup_max_height": "240",
"completion_popup_max_width": "640",
Will it work if we hard-code it like max_width=9999
and limit it with CSS?
No, that will only limited the actual rendered content and not the popup itself.
@jfcherng we can either set higher defaults or create new settings
"completion_popup_max_height": "240", "completion_popup_max_width": "640",
Then yes, I think we have no choice.