Sweets

Error bar

The bar that shows configuration errors, and how to style it

When your config has an error, a bar appears on every monitor. It shows the file, the line, and what went wrong. Sweets keeps running with your last working config.

ToDo
Clear the barFix the error and save, or press MOD+Shift+R
Hide it for nowPress MOD+Shift+E
See the error againRun sweets msg config

sweets.notify

Change how the bar looks:

sweets.notify({
  background = "#420F0F",
  text = "#FFFFFF",
  accent = "#ED4545",
  font = "Monospace 10",
  position = "top", -- "top" or "bottom"
})
FieldDefaultEffect
position"top"Show the bar at the "top" or "bottom"
background"#6B1212"Background color
text"#FFFFFF"Text color
accent"#ED4545"Stripe on the left edge
font"Monospace 10"Font, like "Sans 11"

Style changes show on the next error, because the bar uses your last working config.

On this page