Skip to content

Commit

Permalink
Overrides clears hl groups instead of overwriting (#46)
Browse files Browse the repository at this point in the history
* fix: overrides clears hl groups instead of overwriting

Hey there! I found that instead of overwriting, `overrides` rather
clears the highlight groups. This should address this issue.

* docs: updated transparency example

Hello again! I found that WhichKeyFloat doesn't have any effect on the
wk background. I guess later versions switched to NormalFloat. Thanks
for porting the theme btw! :)
  • Loading branch information
MarcoBuess authored Dec 15, 2024
1 parent df06ef9 commit 3716069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ require('lualine').setup({
require('ayu').setup({
overrides = {
Normal = { bg = "None" },
NormalFloat = { bg = "none" },
ColorColumn = { bg = "None" },
SignColumn = { bg = "None" },
Folded = { bg = "None" },
FoldColumn = { bg = "None" },
CursorLine = { bg = "None" },
CursorColumn = { bg = "None" },
WhichKeyFloat = { bg = "None" },
VertSplit = { bg = "None" },
},
})
Expand Down
2 changes: 1 addition & 1 deletion lua/ayu/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ local function set_groups()
MiniTrailspace = { bg = colors.vcs_removed },
}

groups = vim.tbl_extend('force', groups, type(config.overrides) == 'function' and config.overrides() or config.overrides)
groups = vim.tbl_deep_extend('force', groups, type(config.overrides) == 'function' and config.overrides() or config.overrides)

for group, parameters in pairs(groups) do
vim.api.nvim_set_hl(0, group, parameters)
Expand Down

0 comments on commit 3716069

Please sign in to comment.