Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/linarcx/mpi

minimal (n)vim plugins - icons (Under 200 LOC)
https://github.com/linarcx/mpi

diy file-icons minimalist neovim vim vim-plugin

Last synced: about 2 months ago
JSON representation

minimal (n)vim plugins - icons (Under 200 LOC)

Awesome Lists containing this project

README

        


mpi


Using mpi + mpsl + mpbtl


## Installation
Just copy `mpi.vim` into your `plugin` directory.

## Why?
- [KISS](https://en.wikipedia.org/wiki/KISS_principle)
- I like [vim-devicons](https://github.com/ryanoasis/vim-devicons). But it cares too much about integrating with other plugins. Its code is huge get such a simple task.(getting file type icons)
- I like to manipulate and discover things and see what's going on under the hood(And i encourage you, too). So, instead of just using a huge plugin, install a minimal alternative and change it according to your needs.

## How use it?
Just call `mpi#get()` to get its related icon. For exmaple use this command to see what'll happen:

`:echo mpi#get(expand('%:t'))`

## Customization
You can add [unicode emojies](https://en.wikipedia.org/wiki/Template:Emoji_(Unicode_block)) like this:

```
let g:mpi#exact_matches = {
...
\ '.zshrc' : '🌍',
\ '.zsh_history' : "\",
\ '.fehbg' : '🐈',
...
\}
```

Filetypes are here:
`/usr/share/nvim/runtime/filetype.vim`

## Donate
- Bitcoin: `13T28Yd37qPtuxwTFPXeG9dWPahwDzWHjy`

- Monero: `48VdRG9BNePEcrUr6Vx6sJeVz6EefGq5e2F5S9YV2eJtd5uAwjJ7Afn6YeVTWsw6XGS6mXueLywEea3fBPztUbre2Lhia7e`

## License
![License](https://img.shields.io/github/license/LinArcX/mpi.svg)