vim-settings/neovim/lua/plugins/goyo-limelight.lua

19 lines
309 B
Lua
Raw Permalink Normal View History

2021-12-14 00:48:40 +00:00
vim.g.goyo_width = 120
2021-12-15 17:37:51 +00:00
vim.cmd([[
2021-12-14 00:48:40 +00:00
command Zen :Goyo
function! s:goyo_enter()
Limelight
endfunction
function! s:goyo_leave()
Limelight!
endfunction
augroup zenevents
autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()
augroup end
2021-12-15 17:37:51 +00:00
]])