Skip to content
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

Monokai seems to clobber colors in nvim-tree #28

Open
johnmathews opened this issue Sep 23, 2022 · 1 comment
Open

Monokai seems to clobber colors in nvim-tree #28

johnmathews opened this issue Sep 23, 2022 · 1 comment

Comments

@johnmathews
Copy link

I really like this colorscheme, thanks.

I have this issue where sometimes when I open up nvim-tree all the nvim-tree text and icons are white. This only happens with this plugin. If I use another colorscheme the issue is absent.

I don't know how to begin debugging the problem, as Im not sure what the highlight groups in nvim-tree are called (nvim-tree/nvim-tree.lua#1601 (comment)). Maybe you have some ideas?

@jbleuzen
Copy link

Hi,
Not sure it's the right way to do it, but I have manually added all the "highlight groups" I needed for nvim-tree when I setup the theme, which gives something like this :

local monokai = require('monokai')
local palette = monokai.soda

monokai.setup {
    ...
    custom_hlgroups = {
      -- nvim-tree
        NvimTreeFolderName = {
          fg = palette.green,
        },
        NvimTreeRootFolder = {
          fg = palette.base8,
        },
        NvimTreeFolderIcon = {
          fg = palette.green,
        },
        NvimTreeOpenedFolderName = {
          fg = palette.aqua,
        },
        NvimTreeFileIcon = {
          fg = palette.aqua,
        },
        NvimTreeSpecialFile = {
          fg = palette.purple
        },
        NvimTreeSymlink = {
          fg = palette.green,
        },
       ...
    }
}

Colors are not optimal but it looks like default NERDTree design I had on vim...
CleanShot 2022-09-29 at 18 24 47

Hope it helps !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants