Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
/ mpi Public archive

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

License

Notifications You must be signed in to change notification settings

LinArcX/mpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpi

Using mpi + mpsl + mpbtl

Installation

Just copy mpi.vim into your plugin directory.

Why?

  • KISS
  • I like 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(<name of buffer>) 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 like this:

let g:mpi#exact_matches = {
    ...
    \ '.zshrc'                           : '🌍',
    \ '.zsh_history'                     : "\<Char-0x23f0>",
    \ '.fehbg'                           : '🐈',
    ...
\}

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

Donate

  • Bitcoin: 13T28Yd37qPtuxwTFPXeG9dWPahwDzWHjy

  • Monero: 48VdRG9BNePEcrUr6Vx6sJeVz6EefGq5e2F5S9YV2eJtd5uAwjJ7Afn6YeVTWsw6XGS6mXueLywEea3fBPztUbre2Lhia7e

License

License

Releases

No releases published

Sponsor this project

Packages

No packages published