File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ local opts = require (" nvconfig" ).base46
2
+ local str = " "
3
+ local colors = require (" base46.themes." .. opts .theme ).base_30
4
+
5
+ for name , hex in pairs (colors ) do
6
+ str = str .. name .. " ='" .. hex
7
+ str = str .. " ',"
8
+ end
9
+
10
+ str = " return {" .. str .. " }"
11
+
12
+ return str
Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ M.turn_str_to_color = function(tb)
63
63
if valtype == " string" and val :sub (1 , 1 ) ~= " #" and val ~= " none" and val ~= " NONE" then
64
64
hlgroups [opt ] = colors [val ]
65
65
elseif valtype == " table" then
66
-
67
66
-- transform table to color
68
67
hlgroups [opt ] = # val == 2 and lighten (colors [val [1 ]], val [2 ])
69
68
or mixcolors (colors [val [1 ]], colors [val [2 ]], val [3 ])
@@ -149,6 +148,7 @@ M.compile = function()
149
148
end
150
149
151
150
M .str_to_cache (" term" , require " base46.term" )
151
+ M .str_to_cache (" colors" , require " base46.color_vars" )
152
152
153
153
local all_str = " "
154
154
You can’t perform that action at this time.
0 commit comments