diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-29 12:55:38 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-29 12:55:38 +0200 |
commit | 6f421c5c83c657552de2a6d2932ff23c7bc30cdb (patch) | |
tree | 9ca99472e558a38b286904e3dfd0cab7cdfb8bed /lua | |
parent | 15c8ac22159a2e5791c5178d072ca1ead808ebee (diff) |
Fix highlighting
Diffstat (limited to 'lua')
-rw-r--r-- | lua/no-clown-fiesta/util.lua | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/lua/no-clown-fiesta/util.lua b/lua/no-clown-fiesta/util.lua index 1591a63..46e66d3 100644 --- a/lua/no-clown-fiesta/util.lua +++ b/lua/no-clown-fiesta/util.lua @@ -1,23 +1,7 @@ local M = {} local function highlight(group, properties) - local bg = properties.bg == nil and "" or "guibg=" .. properties.bg - local fg = properties.fg == nil and "" or "guifg=" .. properties.fg - local sp = properties.sp == nil and "" or "guisp=" .. properties.sp - local style = properties.style == nil and "" or "gui=" .. properties.style - local link = properties.link == nil and "" or "link=" .. properties.link - - local cmd = table.concat({ - "highlight", - group, - bg, - fg, - sp, - style, - link, - }, " ") - - vim.api.nvim_command(cmd) + vim.api.nvim_set_hl(0, group, properties) end function M.initialise(skeleton) |