Icons not being overridden anymore #356
-
Hello everyone! In my config I have overridden some icons (either the icons themselves or the color) to fit my theme/preferences more. However, out of nowhere it just stopped working. Just as extra info in case it may be the cause, I'm using NixOS and I'm managing my plugins through home-manager, but I still got the overrides to work properly like I've shown in the picture, so I really have no idea what could've changed. Just in case, here's my config for it-- Web-Devicons
require("nvim-web-devicons").setup({
-- your personnal icons can go here (to override)
-- you can specify color or cterm_color instead of specifying both of them
-- DevIcon will be appended to `name`
override = {
rs = {
icon = "",
color = "#ff9e64",
name = "Rust",
},
lua = {
icon = "",
color = "#7DCFFF",
name = "Lua",
},
py = {
icon = "",
color = "#7bd88f",
name = "Python",
},
go = {
icon = "",
color = "#7dcfff",
name = "Go",
},
cpp = {
icon = "",
color = "#7aa2f7",
name = "CPP",
},
c = {
icon = "",
color = "#BB9AF7",
name = "C",
},
tex = {
icon = "",
color = "#9AA5CE",
name = "LaTeX",
},
vim = {
icon = "",
color = "#7BD88F",
name = "Vim",
},
oil = {
icon = "",
color = "#24283b",
name = "oil",
},
vue = {
icon = "",
color = "#7bd88f",
name = "Vue",
},
},
override_by_extension = {
["norg"] = {
icon = "",
color = "#4878BE",
name = "Neorg",
},
["oil"] = {
icon = "",
color = "#24283b",
name = "oil",
},
},
-- globally enable different highlight colors per icon (default to true)
-- if set to false all icons will have the default icon's color
color_icons = true,
}) Thanks in advance for your time. Again, this really happened from one day to another (like two days ago it was all working perfectly) and I didn't change my config, at most I might've just updated my system (which shouldn't have changed my settings unless the plugin got updated), so any help on what could be going on is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Overridden icons not showing implies an issue with plugin ordering. You'll need call nvim-web-devicons setup before any other plugin setups. Almost all users of the icons cache them for performance reasons. Check you plugin manager's documentation for information on how to manage startup ordering. |
Beta Was this translation helpful? Give feedback.
The issue is ordering - you need to call web-devicons setup before you call nvim-tree setup, lualine setup etc. e.g.