From ae04751e0967ee337f072982ae0f32f0db1f3f25 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Sun, 20 Jul 2014 23:39:13 -0400 Subject: [PATCH 1/2] Added git-signify to the list of toggled plugins --- plugin/goyo.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugin/goyo.vim b/plugin/goyo.vim index 0a492c1..b4b2341 100644 --- a/plugin/goyo.vim +++ b/plugin/goyo.vim @@ -146,6 +146,12 @@ function! s:goyo_on(width) silent! GitGutterDisable endif + " vim-signify + let t:goyo_disabled_signify = exists("b:sy") + if t:goyo_disabled_signify + if (b:sy.active)|SignifyToggle|endif + endif + " vim-airline let t:goyo_disabled_airline = exists("#airline") if t:goyo_disabled_airline @@ -242,6 +248,7 @@ function! s:goyo_off() let goyo_revert = t:goyo_revert let goyo_disabled_gitgutter = t:goyo_disabled_gitgutter + let goyo_disabled_signify = t:goyo_disabled_signify let goyo_disabled_airline = t:goyo_disabled_airline let goyo_disabled_powerline = t:goyo_disabled_powerline let goyo_disabled_lightline = t:goyo_disabled_lightline @@ -278,6 +285,10 @@ function! s:goyo_off() silent! GitGutterEnable endif + if goyo_disabled_signify + silent! if !(b:sy.active)|SignifyToggle|endif + endif + if goyo_disabled_airline && !exists("#airline") AirlineToggle silent! AirlineRefresh From 27ea8fa731e89cbd19ce886251657f687c54ec42 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 23 Jul 2014 23:12:48 -0400 Subject: [PATCH 2/2] Following junegunn's advice, both checks are made together --- plugin/goyo.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/goyo.vim b/plugin/goyo.vim index b4b2341..1701cbd 100644 --- a/plugin/goyo.vim +++ b/plugin/goyo.vim @@ -147,9 +147,9 @@ function! s:goyo_on(width) endif " vim-signify - let t:goyo_disabled_signify = exists("b:sy") + let t:goyo_disabled_signify = exists('b:sy') && b:sy.active if t:goyo_disabled_signify - if (b:sy.active)|SignifyToggle|endif + SignifyToggle endif " vim-airline