flexoki-neovim/lua/flexoki/highlights/init.lua

38 lines
1.2 KiB
Lua
Raw Permalink Normal View History

local M = {}
M.groups = function ()
-- This could be done dynamically by looking for all files, but this approach is fine and is safer
local modules = {
require('flexoki.highlights.base').groups(),
require('flexoki.highlights.mini-nvim').groups(),
2023-12-07 18:20:41 +08:00
require('flexoki.highlights.flash-nvim').groups(),
2023-12-08 17:57:56 +08:00
require('flexoki.highlights.neotree').groups(),
-- require('flexoki.highlights.buffer').groups(),
-- require('flexoki.highlights.cmp').groups(),
-- require('flexoki.highlights.dashboard').groups(),
-- require('flexoki.highlights.git').groups(),
-- require('flexoki.highlights.indent-blank-line').groups(),
-- require('flexoki.highlights.lsp').groups(),
-- require('flexoki.highlights.markdown').groups(),
-- require('flexoki.highlights.nvimtree').groups(),
-- require('flexoki.highlights.telescope').groups(),
-- require('flexoki.highlights.treesitter').groups(),
-- require('flexoki.highlights.whichkey').groups(),
}
--- @type table<string, vim.api.keyset.highlight>
local result = {}
-- Just takes the list of "modules" from above and combines them all into a single table/array
for _, groups in pairs(modules) do
for highlightGroup, group in pairs(groups) do
result[highlightGroup] = group
end
end
return result
end
return M