alexmurray / flycheck-posframe

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

Feature request: padding/margin for frames #29

Closed bobbbay closed 2 years ago

bobbbay commented 3 years ago

The border feature is awesome, but sadly looks very cramped for me:

image

Is it possible to set a padding and/or margin for each frame? I can't seem to find the option :(.

P.S. I have seen #11 but it doesn't seem to solve the spacing issue.

Thanks in advance!

woolsweater commented 6 months ago

I find that I can fake padding acceptably using the :box face attribute, e.g.

(let ((background some-color))
  (set-face-attribute 'flycheck-posframe-error-face nil 
                      :background background
                      :box `(:line-width (3 . 1) :color ,background)))