Replies: 2 comments 3 replies
-
Perhaps try the following: use {
"kyazdani42/nvim-tree.lua",
requires = "kyazdani42/nvim-web-devicons" ,
wants = "nvim-web-devicons",
config = function()
require("nvim-web-devicons").setup()
require("nvim-tree").setup {
hijack_cursor = true,
view = {
width = 40
}
}
end
}
|
Beta Was this translation helpful? Give feedback.
3 replies
-
There is an option to disable/enable colors. Not sure if still relevant. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've installed
nvim-tree.lua
like this:However, when I open the tree, the devicons don't have any colors:
If I lazy-load the plugin by setting
opt = true
:It works, presumably because now the devicons package gets initialized properly before nvim-tree is loaded. However, lazy-loading this plugin breaks the first invocation of
NvimTreeFindFile
, so I don't want to lazy load it.How do I install this plugin without lazy-loading so it works properly?
EDIT: I tried adding
after = { "nvim-web-devicons" }
but it didn't make any difference.Beta Was this translation helpful? Give feedback.
All reactions