Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 21 days 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 (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-03T07:11:59.000Z (5 months ago)
- Last Synced: 2024-08-24T08:02:32.851Z (24 days ago)
- Topics: colors, neovim, nerdfont, vim, vim-devicons
- Language: Vim Script
- Homepage:
- Size: 53.7 KB
- Stars: 127
- Watchers: 5
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎨 glyph-palette
![Support Vim 8.1 or above](https://img.shields.io/badge/support-Vim%208.1%20or%20above-yellowgreen.svg)
![Support Neovim 0.4 or above](https://img.shields.io/badge/support-Neovim%200.4%20or%20above-yellowgreen.svg)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![Doc](https://img.shields.io/badge/doc-%3Ah%20glyph--palette-orange.svg)](doc/glyph-palette.txt)![glyph-palette](https://user-images.githubusercontent.com/546312/89098136-c442ac80-d41f-11ea-90ce-68f2df7ccb25.png)
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][]
- [nerdfont.vim][]
- [fern-renderer-nerdfont.vim][][nerd fonts]: https://github.com/ryanoasis/nerd-fonts
[vim-devicons]: https://github.com/ryanoasis/vim-devicons
[nerdfont.vim]: https://github.com/lambdalisue/nerdfont.vim
[fern-renderer-nerdfont.vim]: https://github.com/lambdalisue/fern-renderer-nerdfont.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 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 nerdfont.vim + fern.vim + fern-renderer-nerdfont.vim](https://user-images.githubusercontent.com/546312/88701008-6c1c5980-d144-11ea-8d6b-d4f4290274a6.png)
Provide us your nice screenshots!
## Special thanks
An initial implementation has written by @zeorin at https://github.com/ryanoasis/vim-devicons/issues/158