mirror of
https://github.com/gabehf/base46.git
synced 2026-03-15 10:15:55 -07:00
fix custom themes not working (#68)
This commit is contained in:
parent
81209f4fec
commit
0c1a2205fd
1 changed files with 3 additions and 3 deletions
|
|
@ -20,10 +20,10 @@ end
|
||||||
require "term_hl"
|
require "term_hl"
|
||||||
|
|
||||||
-- polish theme specific highlights
|
-- polish theme specific highlights
|
||||||
local theme = require("hl_themes." .. ui.theme)
|
local theme = pcall(require, "hl_themes." .. ui.theme)
|
||||||
|
|
||||||
if theme.polish_hl then
|
if theme then
|
||||||
highlights = merge_tb(highlights, theme.polish_hl)
|
highlights = merge_tb(highlights, require(theme).polish_hl)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- override user highlights if there are any
|
-- override user highlights if there are any
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue