mirror of
https://github.com/maxmx03/dracula.nvim.git
synced 2026-09-10 07:26:19 -04:00
override
This commit is contained in:
parent
fe00e7c32a
commit
a38fbf88e6
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue