-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot override Lua icon color #462
Comments
Thanks for the fast response!! 😊 it's from https://github.com/brenoprata10/nvim-highlight-colors |
I added these property to the plugin which expected Lazy.nvim will load and setup it first, but still didnt work....Not only my nvim-tree, but also bufferline-nvim or incline-nvim and maybe other plugin did not catch the color Somehow it only wrong for DevIconLua |
UPDATE: I have got the DevIconLua to change the color, but I have to do an extra line of code after the setup method:
Dont really know why but it work for me for now |
Great news! #464 should resolve these sorts of problems. |
Cool, will try this out |
#464 seems to be an issue, not a PR. Is there any PR that solves this that I can try out? I'm having a similar issue where sometimes the color of the override is set to white, even though I've set some other color. Here's a minimal config that reproduces the issue: Click to expandlocal lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
vim.keymap.set('n', '<c-q>', vim.cmd.quit)
require('lazy').setup({
{
'romgrk/barbar.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
opts = {
override = {
md = {
icon = 'THIS TEXT IS SOMETIMES WHITE',
color = 'red',
name = 'Markdown'
},
},
}
},
opts = {},
}
}) To reproduce
The issue seems to occur with about a 50% chance. |
Sometimes is the key. Lazy's ordering is nondeterministic. Can you try with another plugin manager or call setup yourself afterwards, in the correct order? |
My configuration:
NvimTree:
I expected the DevIconLua should be green as same as the highlight color you guys can see in the photo but it's still have the default color. Other icons seem work fine.
The text was updated successfully, but these errors were encountered: