mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 19:26:27 +00:00
Add zen plugins
This commit is contained in:
parent
04b0f7b5f8
commit
079808942b
@ -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 {
|
||||
|
18
neovim/lua/plugins/goyo-limelight.lua
Normal file
18
neovim/lua/plugins/goyo-limelight.lua
Normal 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
|
||||
]]
|
Loading…
Reference in New Issue
Block a user