summary refs log tree commit diff
path: root/.vim/lua/plugins/_goyo.lua
diff options
context:
space:
mode:
Diffstat (limited to '.vim/lua/plugins/_goyo.lua')
-rw-r--r--.vim/lua/plugins/_goyo.lua15
1 files changed, 9 insertions, 6 deletions
diff --git a/.vim/lua/plugins/_goyo.lua b/.vim/lua/plugins/_goyo.lua
index e18d2ba..538712d 100644
--- a/.vim/lua/plugins/_goyo.lua
+++ b/.vim/lua/plugins/_goyo.lua
@@ -1,9 +1,12 @@
 vim.g.goyo_width = 120
 vim.g.goyo_height = 90
 vim.g.goyo_linenr = false
-require('utils').augroup('goyo_hooks', {
-  {'User', 'GoyoEnter', 'set laststatus=0 scrolloff=999'},
-  {'User', 'GoyoEnter', 'Limelight'},
-  {'User', 'GoyoLeave', 'set laststatus=2 scrolloff=5'},
-  {'User', 'GoyoLeave', 'Limelight!'},
-})
+
+require('utils').augroup2 {
+  goyo_hooks = {
+    {'User', 'GoyoEnter', 'set laststatus=0 scrolloff=999'},
+    {'User', 'GoyoEnter', 'Limelight'},
+    {'User', 'GoyoLeave', 'set laststatus=2 scrolloff=5'},
+    {'User', 'GoyoLeave', 'Limelight!'},
+  }
+}