Skip to content

Commit

Permalink
fix: on_highlights,on_colors
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmx03 committed Feb 25, 2024
1 parent e9973d4 commit a5c2195
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/dracula/highlights/dracula-soft.lua
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ end

M.set_highlight = function(colors, config)
if config.on_colors then
local color = require 'dracula.color'
colors = vim.tbl_extend('force', colors, config.on_colors(colors))
end
-- EDITOR :h highlight-groups
Expand Down Expand Up @@ -826,7 +827,7 @@ M.set_highlight = function(colors, config)
nvim_set_hl('MiniCursorword', { link = 'Visual' })
end
if config.on_highlights then
local color = require 'dracula-soft.color'
local color = require 'dracula.color'
local highlights = config.on_highlights(colors, color)

for group_name, group_val in pairs(highlights) do
Expand Down
1 change: 1 addition & 0 deletions lua/dracula/highlights/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ end

M.set_highlight = function(colors, config)
if config.on_colors then
local color = require 'dracula.color'
colors = vim.tbl_extend('force', colors, config.on_colors(colors))
end
-- EDITOR :h highlight-groups
Expand Down

0 comments on commit a5c2195

Please sign in to comment.