2023-03-26 01:10:26 +01:00
|
|
|
local M = {}
|
|
|
|
|
2023-03-30 03:50:44 +02:00
|
|
|
---@class HighlightsProvider
|
|
|
|
---@field highlights table<string, Highlight>
|
2023-04-12 23:47:01 +02:00
|
|
|
---@field setup fun() Set highlights
|
2023-03-30 03:50:44 +02:00
|
|
|
|
|
|
|
---@type HighlightsProvider[]
|
2023-03-26 04:05:39 +02:00
|
|
|
local providers = {
|
2023-03-30 05:42:57 +02:00
|
|
|
require("gruber-darker.highlights.colorscheme"),
|
2023-03-30 06:13:32 +02:00
|
|
|
require("gruber-darker.highlights.lsp"),
|
2023-03-26 16:04:41 +02:00
|
|
|
require("gruber-darker.highlights.vim"),
|
|
|
|
require("gruber-darker.highlights.terminal"),
|
|
|
|
require("gruber-darker.highlights.treesitter"),
|
2023-04-17 20:03:33 +02:00
|
|
|
require("gruber-darker.highlights.cmp"),
|
2023-04-20 15:11:42 +02:00
|
|
|
require("gruber-darker.highlights.telescope"),
|
2023-03-26 04:05:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
---Set highlights for configured providers
|
2023-03-26 01:10:26 +01:00
|
|
|
function M.setup()
|
2023-03-30 03:50:44 +02:00
|
|
|
for _, provider in ipairs(providers) do
|
|
|
|
provider:setup()
|
2023-03-26 04:05:39 +02:00
|
|
|
end
|
2023-04-10 19:22:47 +02:00
|
|
|
vim.opt.guicursor:append("a:Cursor/lCursor")
|
2023-03-26 01:10:26 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|