Skip to content

Commit

Permalink
feat: Added alignment support for label headings
Browse files Browse the repository at this point in the history
Label style headings can now be aligned left, center or right. They are
affected by the new textoff option.

Closes #124

fix!: Deprecated old presets
  • Loading branch information
OXY2DEV committed Aug 25, 2024
1 parent 28c70aa commit 2e0761e
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 426 deletions.
6 changes: 6 additions & 0 deletions lua/definitions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@
--- Enable/Disable stylized headings
---@field enable boolean?
---
--- Fallback textoff value
---@field textoff? number
---
--- Number of characters to shift per heading level
---@field shift_width number?
---
Expand All @@ -145,6 +148,9 @@
--- Name of the style to use
---@field style string
---
--- Alignment for label styled headings
---@field align? string
---
--- Default highlight group used by the rest of the options
--- Used for highlighting the line when the style is "simple"
---@field hl string?
Expand Down
Loading

0 comments on commit 2e0761e

Please sign in to comment.