romgrk / barbar.nvim

The neovim tabline plugin.
2.23k stars 83 forks source link

fix(icons): being cleared by `:colorscheme` #388

Closed Iron-E closed 1 year ago

Iron-E commented 1 year ago

The problem was that nvim-web-devicons resets its highlights using an autocmd on ColorScheme, just to make sure that nothing weird happens to the highlight groups it defines as a result of e.g. :highlight clear when switching colorschemes. Our ColorScheme event was running too soon (i.e. before the devicons event) and as such the icons were all "cleared" upon calling :colorscheme.

Closes #382