summary refs log tree commit diff
path: root/.vim/lua/plugins/_goyo.lua
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-05-31 16:55:12 +0200
committerRobert Günzler <r@gnzler.io>2021-05-31 16:56:02 +0200
commit48c6c952a9fccc1cc46f6cb8d817d5a4266a7c10 (patch)
tree13496c7968f33f83ff2a48b06b725f8119a0dae4 /.vim/lua/plugins/_goyo.lua
parent84c501be462e03b55401ca962e03ff56e1bb1ae5 (diff)
vim: misc stuff
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!'},
+  }
+}