alexmurray / flycheck-posframe

Show flycheck errors via posframe.el
60 stars 9 forks source link

Feature request: Custom appearance of the posframe #11

Closed Yevgnen closed 5 years ago

Yevgnen commented 5 years ago

It would be nice to have the following things customizable:

  1. The appearance of the posframe, e.g. border.

  2. The position of the posframe, some thing like lsp-ui place the error message on the right side of the window is nice.

dsvensson commented 5 years ago

+1 on border just like lsp-ui, would be much easier to spot it. Doesn't seem to be customizable atm.

Adding the following to flycheck-posframe-show-posframe adds the border, but it would also be nice with some margin/padding like in lsp-ui.

     :internal-border-width 1
     :internal-border-color "white"

The margin/padding stuff in lsp-ui is possibly found here:

https://github.com/emacs-lsp/lsp-ui/blob/3ccc3e3386732c3ee22c151e6b5215a0e4c99173/lsp-ui-doc.el#L404-L425

alexmurray commented 5 years ago

Please try using the new customization options in version 0.6 - flycheck-posframe-position flycheck-posframe-border-width and flycheck-posframe-border-color - hopefully these should meet your needs.