kristijanhusak/defx-icons

the custom color is not applied in neovim

physical-eng opened this issue · 2 comments

Hi @kristijanhusak , Thanks your greatful plugins.

Unfortunately, my custom icon color setting is not working in neovim.

I wrote .vimrc and init.vim as below.

let g:defx_icons_extensions = {}
let g:defx_icons_extensions['md'] = {'icon': '', 'color': '#0000FF', 'term_color':  67 } "bule
let g:defx_icons_extensions['py'] = {'icon': '', 'color': '#F09F17', 'term_color': 229 } "yellow

in vim.

vim

in neovim.

nvim

The default color is applied to test.pyc, but custom one is not.(README.md and test.py)
Please tell me what I made a mistake.

Hi @physical-eng ,

remove the # from hex color. You can see how colors are defined here https://github.com/kristijanhusak/defx-icons/blob/master/plugin/defx_icons.vim#L21

I overlooked it!
Thank you so much!