sbdchd / neoformat

:sparkles: A (Neo)vim plugin for formatting code.
BSD 2-Clause "Simplified" License
1.99k stars 189 forks source link

feat: set global flag `g:neoformat` #378

Closed 2nthony closed 3 years ago

2nthony commented 3 years ago

image

Motivation

I saw some plugin set the flag to let user the plugin is existed or loaded, for me is check is loaded. But now I can only check it is exists via has_key(plugs, {plug_name}).

Fix usage

if !exists('g:neoformat') | finish | endif
sbdchd commented 3 years ago

Thanks!