We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b65ba4 commit 5ca4040Copy full SHA for 5ca4040
lua/cosmic-ui/init.lua
@@ -4,4 +4,14 @@ M.rename = function(popup_opts, opts)
4
return require('cosmic-ui.rename')(popup_opts, opts)
5
end
6
7
+M.highlight = function(group, bg, fg, gui)
8
+ if gui ~= nil and gui ~= '' then
9
+ vim.api.nvim_command(('hi %s guibg=%s guifg=%s gui=%s'):format(group, bg, fg, gui))
10
+ elseif bg == nil then
11
+ vim.api.nvim_command(('hi %s guifg=%s'):format(group, fg))
12
+ else
13
+ vim.api.nvim_command(('hi %s guibg=%s guifg=%s'):format(group, bg, fg))
14
+ end
15
+end
16
+
17
return M
0 commit comments