Closed ThaiDuy12345 closed 1 month ago
Execute nvim-web-devicons setup
before you execute nvim-tree setup.
What's that plugin that shows the rgb colours after the #
? That looks incredibly useful!
Raised #464
Added to readme: https://github.com/nvim-tree/nvim-web-devicons?tab=readme-ov-file#my-setup-overrides-are-not-applied
Execute nvim-web-devicons
setup
before you execute nvim-tree setup.What's that plugin that shows the rgb colours after the
#
? That looks incredibly useful!
Thanks for the fast response!! 😊 it's from https://github.com/brenoprata10/nvim-highlight-colors
Execute nvim-web-devicons
setup
before you execute nvim-tree setup.What's that plugin that shows the rgb colours after the
#
? That looks incredibly useful!
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
Incline-nvim:
bufferline:
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:
devicons.set_icon({
java = { icon = "", color = "#e46368", name = "Java" },
[".gitignore"] = { icon = "", color = "#428850", name = "GitIgnore" },
js = { icon = "", color = "#f7cd6d", name = "JavaScript" },
json = { icon = "", color = "#f7cd6d", name = "JSON" },
....
})
Dont really know why but it work for me for now
Great news!
Great news!
464 should resolve these sorts of problems.
Cool, will try this out
@alex-courtis
Great news!
464 should resolve these sorts of problems.
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:
To reproduce
nvim -u path/to/config/above
THIS TEXT IS SOMETIMES WHITE
is sometimes white, and sometimes red (which it should be)The issue seems to occur with about a 50% chance.
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.
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:
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.