nvim: after/plugin/statusline: Use nvim_set_hl API
See https://github.com/neovim/neovim/pull/17187.
This commit is contained in:
parent
60478a59b0
commit
8b424a2533
|
@ -20,7 +20,7 @@ local colors = {
|
||||||
}
|
}
|
||||||
|
|
||||||
local function highlight(group, fg, bg)
|
local function highlight(group, fg, bg)
|
||||||
cmd(string.format("%s %s %s %s %s %s", "highlight ", group, "guifg=", fg, "guibg=", bg))
|
api.nvim_set_hl(0, group, { fg = fg, bg = bg })
|
||||||
end
|
end
|
||||||
|
|
||||||
highlight("Window" , colors.red , colors.bg)
|
highlight("Window" , colors.red , colors.bg)
|
||||||
|
|
Loading…
Reference in a new issue