summaryrefslogtreecommitdiff
path: root/neovim/.config/nvim/lua/config/goyo.lua
diff options
context:
space:
mode:
authorMichaël Ball <michael.ball@krotosaudio.com>2024-07-18 09:07:05 +0100
committerMichaël Ball <michael.ball@krotosaudio.com>2024-07-18 09:07:05 +0100
commit457ce9e6017c081e02a566895fa1fe488cd87b9c (patch)
tree05f49a483fe99c9935f43e8e4c25f80ba5077452 /neovim/.config/nvim/lua/config/goyo.lua
parent4c2a7cc1b0fa0e437476e06c1c11e1778d9cc92f (diff)
Refactor plugins for lazy.nvim
Diffstat (limited to 'neovim/.config/nvim/lua/config/goyo.lua')
-rw-r--r--neovim/.config/nvim/lua/config/goyo.lua30
1 files changed, 0 insertions, 30 deletions
diff --git a/neovim/.config/nvim/lua/config/goyo.lua b/neovim/.config/nvim/lua/config/goyo.lua
deleted file mode 100644
index dcb7134..0000000
--- a/neovim/.config/nvim/lua/config/goyo.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-vim.keymap.set('', '<Leader>z', '<cmd>Goyo<CR><CR>', {})
-vim.keymap.set('x', '<Leader>z', '<cmd>Goyo<CR>', {})
-
-local goyo_enter = function()
- vim.opt.showmode = false
- vim.opt.showcmd = false
- vim.opt.scrolloff = 999
- vim.cmd('Limelight')
-end
-
-local goyo_leave = function()
- vim.opt.showmode = true
- vim.opt.showcmd = true
- vim.opt.scrolloff = 5
- vim.cmd('Limelight!')
-end
-
-local goyo_augroup = vim.api.nvim_create_augroup('Goyo', { clear = true })
-vim.api.nvim_create_autocmd('User',
- {
- pattern = 'GoyoEnter',
- group = goyo_augroup,
- callback = goyo_enter,
- })
-vim.api.nvim_create_autocmd('User',
- {
- pattern = 'GoyoLeave',
- group = goyo_augroup,
- callback = goyo_leave,
- })