-
Contributing guidelines
Module(s)mini.icons QuestionHow to change mini icons highlights? I'm trying to do this (lazy): return {
"echasnovski/mini.icons",
lazy = true,
opts = {},
init = function()
-- Set up custom highlights for icons
local hi = vim.api.nvim_set_hl
hi(0, "MiniIconsCyan", { link = "Function" })
hi(0, "MiniIconsGreen", { link = "Function" })
hi(0, "MiniIconsOrange", { link = "Function" })
hi(0, "MiniIconsRed", { link = "Function" })
hi(0, "MiniIconsYellow", { link = "Function" })
end,
}but looks line the highlights stay the same 🤷♂️ |
Beta Was this translation helpful? Give feedback.
Answered by
krovuxdev
Jul 1, 2025
Replies: 2 comments
-
|
Hi @klen, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
klen
-
|
@krovuxdev you are right, it's work after the setup. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @klen, you can use
configinstead ofinitbecauseconfigruns after the plugin is loaded. That way, you can safely callrequire("mini.icons").setup()there and then apply the highlights. Everything will load in the correct order.