helix icon indicating copy to clipboard operation
helix copied to clipboard

Support drawing popup frame

Open ath3 opened this issue 2 years ago • 8 comments

Added popup-frame config option.

Before: popup_before

After: popup_after

ath3 avatar Oct 16 '22 14:10 ath3

Drawing borders for popups feel like a good default whereas having a config option for it feels a bit overkill. I suppose some might prefer a sleeker look without the border?

sudormrfbin avatar Oct 16 '22 19:10 sudormrfbin

I think an option for it seems ok. I prefer the borderless look but I've seen some discussions and matrix messages about wanting a border around popups

the-mikedavis avatar Oct 16 '22 20:10 the-mikedavis

I want this to be default. I use dracula theme, and in order to distinguish the popup, I have to modify the theme:

image image

And I haven't seen any popup in nvim without borders. The same codeactionin nvim with lspsage.nvim plugin: image

zjp-CN avatar Oct 20 '22 12:10 zjp-CN

This change covers popups (like signature-help) but not menus (completion, code-actions). I think an option to enable/disable borders on both would be good

the-mikedavis avatar Oct 21 '22 13:10 the-mikedavis

This change covers popups (like signature-help) but not menus (completion, code-actions). I think an option to enable/disable borders on both would be good

It covers now both menus and popups, with settings to enable one of them, both, or none.

ath3 avatar Oct 25 '22 02:10 ath3

Updated after the changes to popups having scrollbars. Also fixed the unnecessary leading newlines in popups displayed for the selected menu item.

ath3 avatar Nov 17 '22 13:11 ath3

I decided to take out the changes related to selection popup whitespace since it has nothing to do with borders. The pr containing those changes is #4902

ath3 avatar Nov 26 '22 16:11 ath3

I think this pr is ready for merge. The last force-push was only to fix a merge conflict with newer changes on master.

ath3 avatar Jan 16 '23 22:01 ath3

Nice job on the PR, has been a staple in my fork for like ever. Minor bug that i noticed tho: DAP mode (list all variables - Spc g v) does not properly draw the frame.

SoraTenshi avatar Jun 22 '23 09:06 SoraTenshi

I cleaned up the code, added popup-borders typable command, and fixed the issues with dap variable popup (thanks @SoraTenshi), and with menu only border setting.

ath3 avatar Aug 09 '23 09:08 ath3

I think this PR is from my perspective in a good state and unless requested i dont plan to do any changes to it. To celebrate this PR's birthday, can i get a review please?

ath3 avatar Oct 16 '23 21:10 ath3

@the-mikedavis @archseer

ath3 avatar Oct 23 '23 10:10 ath3

Bump

ath3 avatar Nov 27 '23 17:11 ath3