bufstop
bufstop copied to clipboard
Enable devicons, add filetype "bufstop" to Bufstop window for users to be able to detect it and color it if they like
You will need two simple things:
- Check if vim-devicons plugin is loaded. If yes, then use the function
WebDevIconsGetFileTypeSymbol()
provided by it to get the file's icon (as discussed pointed here) & prepend it to the file name column of Bufstop/BufstopPreview window. - Make sure to assign a unique filetype name like "bufstop" to your Bufstop window. This can be used by people who want to color the icons (you don't need to add any coloring code yourself). This is being discussed here.
The result will look something like this:
https://github.com/ryanoasis/vim-devicons#---1
Sounds cool, I'll investigate this when I have some time.