sainnhe / gruvbox-material

Gruvbox with Material Palette
MIT License
1.96k stars 166 forks source link

Unable to change Highlight of Linked Nvim-Tree groups #126

Closed par4m closed 2 years ago

par4m commented 2 years ago

In /colors/gruvbox-material.vim

highlight! link NvimTreeSymlink Fg
highlight! link NvimTreeFolderName Green
highlight! link NvimTreeRootFolder Grey
highlight! link NvimTreeFolderIcon Orange
highlight! link NvimTreeEmptyFolderName Green
highlight! link NvimTreeOpenedFolderName Green
highlight! link NvimTreeExecFile Fg
highlight! link NvimTreeOpenedFile Fg
highlight! link NvimTreeSpecialFile Fg
highlight! link NvimTreeImageFile Fg
highlight! link NvimTreeMarkdownFile Fg
highlight! link NvimTreeIndentMarker Grey
highlight! link NvimTreeGitDirty Yellow
highlight! link NvimTreeGitStaged Blue
highlight! link NvimTreeGitMerge Orange
highlight! link NvimTreeGitRenamed Purple
highlight! link NvimTreeGitNew Aqua
highlight! link NvimTreeGitDeleted Red

Colours of these groups are not changing even with augroup

-- Custom highlights

vim.cmd([[
augroup MyColors
autocmd!
autocmd ColorScheme * highlight NormalFloat guibg=#282828
autocmd ColorScheme * highlight ErrorFloat guibg=#282828
autocmd ColorScheme *  highlight HintFloat guibg=#282828
autocmd ColorScheme *  highlight InfoFloat guibg=#282828
autocmd ColorScheme *  highlight WarningFloat guibg=#282828
autocmd ColorScheme * highlight link NvimTreeFolderIcon NONE
autocmd ColorScheme * highlight NvimTreeNormal guifg=#aa9987 guibg=#282828
autocmd ColorScheme *  highlight NvimTreeFolderIcon guifg=#7c6f64
autocmd ColorScheme * highlight NvimTreeRootFolder guifg=#ddc7a1
autocmd ColorScheme * highlight NvimTreeSymlink guifg=#7daea3
autocmd ColorScheme * highlight NvimTreeFolderName guifg=#aa9987
autocmd ColorScheme * highlight NvimTreeEmptyFolderName guifg=#7c6f64
autocmd ColorScheme * highlight NvimTreeOpenedFolderName guifg=#d3869b
autocmd ColorScheme * highlight NvimTreeOpenedFile guifg=#d3869b
autocmd ColorScheme * highlight NvimTreeGitDirty guifg=#b47109
autocmd ColorScheme * highlight NvimTreeGitNew guifg=#6f8352
autocmd ColorScheme * highlight NvimTreeGitDeleted guifg=#c14a4a
autocmd ColorScheme * highlight NvimTreeSpecialFile guifg=#d8a657
autocmd ColorScheme * highlight NvimTreeIndentMarker guifg=#5a524c
autocmd ColorScheme * highlight NvimTreeImageFile guifg=#d4be98
augroup end
]])
vim.cmd('colorscheme gruvbox-material')

Even linking them to NONE above and then setting highlight is not working

autocmd ColorScheme * highlight link NvimTreeFolderIcon NONE
sainnhe commented 2 years ago

This can't be fixed in color scheme level, something seems to break in nvim-tree.

karambaq commented 1 year ago

Hey @par4m, facing the same issue, how did you solve it?