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 1 year ago
JSON representation
minimal (n)vim plugins - icons (Under 200 LOC)
- Host: GitHub
- URL: https://github.com/linarcx/mpi
- Owner: LinArcX
- License: gpl-3.0
- Archived: true
- Created: 2020-03-10T16:59:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-15T15:55:25.000Z (over 3 years ago)
- Last Synced: 2025-03-17T02:46:30.458Z (over 1 year ago)
- Topics: diy, file-icons, minimalist, neovim, vim, vim-plugin
- Language: Vim Script
- Homepage:
- Size: 129 KB
- Stars: 31
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
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
