https://github.com/lambdalisue/vim-glyph-palette
🎨 An universal palette for Nerd Fonts
https://github.com/lambdalisue/vim-glyph-palette
colors neovim nerdfont vim vim-devicons
Last synced: 3 months ago
JSON representation
🎨 An universal palette for Nerd Fonts
- Host: GitHub
- URL: https://github.com/lambdalisue/vim-glyph-palette
- Owner: lambdalisue
- License: mit
- Created: 2020-07-28T02:52:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-24T08:27:36.000Z (6 months ago)
- Last Synced: 2025-03-29T05:05:42.809Z (3 months ago)
- Topics: colors, neovim, nerdfont, vim, vim-devicons
- Language: Vim Script
- Homepage:
- Size: 58.6 KB
- Stars: 130
- Watchers: 5
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎨 glyph-palette


[](LICENSE)
[](doc/glyph-palette.txt)
glyph-palette (Glyph palette) is a plugin to universally apply colors on [Nerd Fonts][].
With this plugin, the following (and potentially more) Nerd Fonts integrations will be nicely highlighted.
- [vim-devicons][]
- [vim-nerdfont][]
- [vim-fern-renderer-nerdfont][]
- [fall.vim][][nerd fonts]: https://github.com/ryanoasis/nerd-fonts
[vim-devicons]: https://github.com/ryanoasis/vim-devicons
[vim-nerdfont]: https://github.com/lambdalisue/vim-nerdfont
[vim-fern-renderer-nerdfont]: https://github.com/lambdalisue/vim-fern-renderer-nerdfont
[fall.vim]: https://github.com/vim-fall/fall.vim## Usage
First of all, make sure that you are using one of [Nerd Fonts][] patched fonts (e.g. Fonts in [Patched Fonts](https://github.com/ryanoasis/nerd-fonts#patched-fonts) or [Cica][] for Japanese).
Visit [Nerd Fonts][] homepage for more detail.[cica]: https://github.com/miiton/Cica
After that, call `glyph_palette#apply()` function on a target buffer like:
```vim
augroup my-glyph-palette
autocmd! *
autocmd FileType fern call glyph_palette#apply()
autocmd FileType fall-list call glyph_palette#apply()
autocmd FileType nerdtree,startify call glyph_palette#apply()
augroup END
```Then glyphs in `g:glyph_palette#palette` on the buffer will be highlighted by predefined highlight groups.
See `:help glyph-palette-usage` for more details
## Screenshots
#### With nerdfont.vim + fern.vim + fern-renderer-nerdfont.vim

#### With fall.vim

Provide us your nice screenshots!
## Special thanks
An initial implementation has written by @zeorin at https://github.com/ryanoasis/vim-devicons/issues/158