This commit is contained in:
Max Miliano 2023-04-08 13:56:40 -03:00
parent fe00e7c32a
commit a38fbf88e6
2 changed files with 6 additions and 1 deletions

View file

@ -59,7 +59,7 @@ Set it to false to use the original, more vibrant colors.
`override`
- Type: table
- Type: table or callback(colors: table)
```lua
local dracula = require('dracula')

View file

@ -42,6 +42,11 @@ M.setup = function(user_config)
M:set_user_colors()
theme.set_highlights(M.colors)
if type(M.user_config.override) == "function" then
M.user_config.override = M.user_config.override(M.colors)
end
utils.update_highlight_groups(M.user_config.override)
utils.update_highlight_groups(M:apply_transparency())
M:call_user_callback(M.user_config.callback)