mirror of
https://github.com/maxmx03/solarized.nvim.git
synced 2026-09-10 07:26:26 -04:00
The "Solarized Neo" theme, which included both light and dark variants, has been dropped. The light variant of "Neo" is now the "Solarized Light" theme. The original "Solarized" by Ethan Schoonover, which also had light and dark versions, is now solely represented as the "Solarized Dark" theme.
24 lines
412 B
Lua
24 lines
412 B
Lua
local function to_hex(decimal)
|
|
if type(decimal) ~= 'number' then
|
|
return decimal
|
|
end
|
|
local hex = string.format('#%06x', decimal)
|
|
return hex:upper()
|
|
end
|
|
|
|
local function nvim_get_hl(name)
|
|
local output = vim.api.nvim_get_hl(0, { name = name, link = false })
|
|
|
|
local t = {}
|
|
|
|
for key, value in pairs(output) do
|
|
t[key] = to_hex(value)
|
|
end
|
|
|
|
return t
|
|
end
|
|
|
|
return {
|
|
nvim_get_hl = nvim_get_hl,
|
|
}
|