This commit is contained in:
RingOfStorms (Joshua Bell) 2023-12-27 23:36:25 -06:00
parent 4d07e39eee
commit 8d0e09607a
5 changed files with 25 additions and 13 deletions

View file

@ -77,6 +77,15 @@ function M.spread(template)
end
end
function M.table_contains(table, element)
for _, value in pairs(table) do
if value == element then
return true
end
end
return false
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"