Skip to content

Commit

Permalink
fix(groups): changing the transparent option now correctly invalidate…
Browse files Browse the repository at this point in the history
…s the cache (#632)

## Description
this PR fixes the issue where changing "transparent" option wasn't taken
into account when cache was active due to cache not being invalidated
properly for "transparent" value changes.

## Related Issue(s)


  - Fixes #561

Co-authored-by: Massinissa Mansouri <[email protected]>
  • Loading branch information
massimans and Massinissa Mansouri authored Sep 16, 2024
1 parent 4b386e6 commit f31be07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/tokyonight/groups/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function M.setup(colors, opts)
colors = colors,
plugins = names,
version = Config.version,
opts = { styles = opts.styles, dim_inactive = opts.dim_inactive },
opts = { transparent = opts.transparent, styles = opts.styles, dim_inactive = opts.dim_inactive },
}

local ret = cache and vim.deep_equal(inputs, cache.inputs) and cache.groups
Expand Down

0 comments on commit f31be07

Please sign in to comment.