👓 Fundemental plugin to handle Nerd Fonts in Vim
Find a file
2025-11-29 19:26:30 +09:00
.github/workflows Fix invalid branch name in GitHub Actions workflow 2025-02-21 20:49:53 +09:00
assets/json Drop windows path separators from vimrc regex 2025-09-28 16:58:37 +02:00
autoload Improve the code about checking if OS is Android 2025-11-27 22:07:31 +08:00
doc Make autofix_cellwidths feature opt-in 2023-12-11 00:59:48 +09:00
plugin Add g:loaded_nerdfont, play nice with other plugins 2025-02-20 16:43:06 +00:00
test Drop windows path separators from vimrc regex 2025-09-28 16:58:37 +02:00
LICENSE Add documentations 2020-07-28 22:53:32 +09:00
LICENSE.vim-devicon Add documentations 2020-07-28 22:53:32 +09:00
README.md Fix status badge 2024-11-09 12:58:31 +09:00

👓 nerdfont.vim

Support Vim 8.2.5136 or above Support Neovim 0.4.4 or above MIT License Doc

reviewdog Vim Neovim

A simplified version of vim-devicons which does NOT provide any 3rd party integrations in itself. In otherwords, it is a fundemental plugin to handle Nerd Fonts from Vim.

With fern.vim + fern-renderer-nerdfont.vim. All glyphs above were powered by this plugin

Usage

First of all, make sure one of Nerd Fonts is used in your Vim. After that, use nerdfont#find() function to find a glyph for the current filetype like:

echo nerdfont#find()

Or specify a path to find a glyph for a particular path like:

echo nerdfont#find(expand('~/.vimrc'))echo nerdfont#find(expand('~/.vim'))

Above automatically check if the specified path is directory. To avoid that, specify the second argument to tell if the path is directory or not like:

echo nerdfont#find(expand('~/.vimrc'), 0)echo nerdfont#find(expand('~/.vimrc'), 1)

See :help nerdfont-function to find glyphs for directory, fileformat, platform, etc.

Contribution

If you would like to add new glyph/filetype supports, see the following files

If Where
Want to add new extension (e.g. .js) assets/json/extension.json
Want to add new exact name (e.g. Makefile) assets/json/basename.json
Want to add new complex pattern (e.g. .*/bin/.*$) assets/json/pattern.json

Integrations

See Integration section of Wiki.

License

The glyph mappings has copied from vim-devicons thus the part follow the license of vim-devicons (LICENSE.vim-devicons). Other parts are MIT license explained in LICENSE.