nullchilly 2 years ago
parent 0dd42959b6
commit 5eed608943

@ -505,12 +505,12 @@ require("catppuccin.lib.highlight").syntax({
``` ```
Note: Unlike the `:highlight` command which can update a highlight group, this function completely replaces the definition. (`:h nvim_set_hl`) Note: Unlike the `:highlight` command which can update a highlight group, this function completely replaces the definition. (`:h nvim_set_hl`)
However,if you wish to use the old highlight (slower): However, if you wish to use the old highlight (slower):
```lua ```lua
local function highlight(tbl) local function highlight(tbl)
for group, color in pairs(tbl) do for group, color in pairs(tbl) do
if color.style and type(color.style) == "table" then if color.style then
color.style = table.concat(color.style, ",") color.style = table.concat(color.style, ",")
end end
local style = color.style and "gui=" .. color.style or "gui=NONE" local style = color.style and "gui=" .. color.style or "gui=NONE"

Loading…
Cancel
Save