Skip to content

Commit

Permalink
fix: get_hlgroup moved to AstroUI
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Feb 14, 2024
1 parent d14b188 commit 3a6e051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/recipes/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ return {
},
-- add new colors that can be used by heirline
colors = function(hl)
local get_hlgroup = require("astrocore").get_hlgroup
local get_hlgroup = require("astroui").get_hlgroup
-- use helper function to get highlight group properties
local comment_fg = get_hlgroup("Comment").fg
hl.git_branch_fg = comment_fg
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/recipes/telescope_theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ return {
-- colors from highlight group there is no default table
-- so we don't need to put a parameter for this function
init = function()
local get_hlgroup = require("astrocore").get_hlgroup
local get_hlgroup = require("astroui").get_hlgroup
-- get highlights from highlight groups
local normal = get_hlgroup("Normal")
local fg, bg = normal.fg, normal.bg
Expand Down

0 comments on commit 3a6e051

Please sign in to comment.