You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
688 B

local merge_tb = require("base16").merge_tb
local highlights = {}
local hl_dir = vim.fn.stdpath "data" .. "/site/pack/packer/opt/nvim-base16.lua/lua/integrations"
-- push all file names in hl_dir to a table
local hl_files = require("plenary.scandir").scan_dir(hl_dir, {})
for _, file in ipairs(hl_files) do
local a = vim.fn.fnamemodify(file, ":t")
a = vim.fn.fnamemodify(a, ":r")
local integration = require("integrations." .. a)
highlights = merge_tb(highlights, integration)
end
-- override user highlights if there are any
local user_highlights = require("core.utils").load_config().ui.hl_override
highlights = merge_tb(highlights, user_highlights)
return highlights