Skip to content

Commit

Permalink
fix(overrides): unable to override spec
Browse files Browse the repository at this point in the history
Fixes: #359
  • Loading branch information
tmillr committed Aug 5, 2024
1 parent 80b7f44 commit 0dd4317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/github-theme/spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ local function get_spec(theme)
local pal = require('github-theme.palette').load(theme)
local spec = pal.generate_spec(pal)
if ovr.all then
pal = vim.tbl_deep_extend('force', pal, template.parse(ovr.all, pal))
spec = vim.tbl_deep_extend('force', spec, template.parse(ovr.all, spec))
end
if ovr[theme] then
pal = vim.tbl_deep_extend('force', pal, template.parse(ovr[theme], pal))
spec = vim.tbl_deep_extend('force', spec, template.parse(ovr[theme], spec))
end
spec.palette = pal
return spec
Expand Down

0 comments on commit 0dd4317

Please sign in to comment.