colors and tabs

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-07-20 04:18:36 -05:00
parent e7ca29410d
commit a3f8af7fea
4 changed files with 70 additions and 46 deletions

View file

@ -18,6 +18,7 @@ function M.keymaps(mappings)
end
end
end
end
function M.spread(template)
@ -34,4 +35,27 @@ function M.spread(template)
end
end
-- From https://github.com/lukas-reineke/onedark.nvim/blob/master/lua/onedark.lua
function M.highlight(group, options)
local guifg = options.fg or "NONE"
local guibg = options.bg or "NONE"
local guisp = options.sp or "NONE"
local gui = options.gui or "NONE"
local blend = options.blend or 0
local ctermfg = options.ctermfg or "NONE"
vim.cmd(
string.format(
"highlight %s guifg=%s ctermfg=%s guibg=%s guisp=%s gui=%s blend=%d",
group,
guifg,
ctermfg,
guibg,
guisp,
gui,
blend
)
)
end
return M