Add zen plugins

This commit is contained in:
ViViDboarder 2021-12-13 16:48:40 -08:00
parent 04b0f7b5f8
commit 079808942b
2 changed files with 24 additions and 0 deletions

View File

@ -182,6 +182,12 @@ return require('packer').startup(function(use)
"preservim/vim-textobj-sentence",
requires = "kana/vim-textobj-user",
}
use {
"junegunn/goyo.vim",
cmd = { "Goyo", "Zen" },
config = [[require("plugins.goyo-limelight")]],
requires = { "junegunn/limelight.vim", cmd = "Limelight" },
}
-- Treesitter
use {

View File

@ -0,0 +1,18 @@
vim.g.goyo_width = 120
vim.cmd [[
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
]]