Skip to content

Commit 6812011

Browse files
committed
Add g:loaded_nerdfont, play nice with other plugins
Allow other plugins or conditional code in vimrc detect that vim-nerdfont is available without having to check &rtp etc. Useful for plugins that automatically use vim-devicons to optionally use vim-nerdfont if installed, e.g. https://github.com/Donaldttt/fuzzyy
1 parent 339e5e0 commit 6812011

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugin/nerdfont.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
" Allow easy detection of nerdfont plugin loaded
2+
if exists("g:loaded_nerdfont")
3+
finish
4+
endif
5+
let g:loaded_nerdfont = 1

0 commit comments

Comments
 (0)