minimal (n)vim plugins - icons (Under 200 LOC)
Just copy mpi.vim
into your plugin
directory.
Just call mpi#get(<name of buffer>)
to get its related icon. For exmaple use this command to see what'll happen:
:echo mpi#get(expand('%:t'))
You can add unicode emojies like this:
let g:mpi#exact_matches = {
...
\ '.zshrc' : '🌍',
\ '.zsh_history' : "\<Char-0x23f0>",
\ '.fehbg' : '🐈',
...
\}
Filetypes are here:
/usr/share/nvim/runtime/filetype.vim
Bitcoin: 13T28Yd37qPtuxwTFPXeG9dWPahwDzWHjy
Monero: 48VdRG9BNePEcrUr6Vx6sJeVz6EefGq5e2F5S9YV2eJtd5uAwjJ7Afn6YeVTWsw6XGS6mXueLywEea3fBPztUbre2Lhia7e