Skip to content

lambdalisue/vim-glyph-palette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 glyph-palette

Support Vim 8.1 or above Support Neovim 0.4 or above MIT License Doc

glyph-palette

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.

Usage

First of all, make sure that you are using one of Nerd Fonts patched fonts (e.g. Fonts in Patched Fonts or Cica for Japanese). Visit Nerd Fonts homepage for more detail.

After that, call glyph_palette#apply() function on a target buffer like:

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 nerdfont.vim + fern.vim + fern-renderer-nerdfont.vim

With fall.vim

With fall.vim

Provide us your nice screenshots!

Special thanks

An initial implementation has written by @zeorin at ryanoasis/vim-devicons#158