mirror of
https://github.com/junegunn/limelight.vim.git
synced 2025-11-16 23:13:40 -05:00
Promote the use of GoyoEnter/GoyoLeave events
This commit is contained in:
11
README.md
11
README.md
@@ -41,15 +41,8 @@ Goyo.vim integration
|
|||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
function! GoyoBefore()
|
autocmd User GoyoEnter LimeLight
|
||||||
Limelight
|
autocmd User GoyoLeave LimeLight!
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! GoyoAfter()
|
|
||||||
Limelight!
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
let g:goyo_callbacks = [function('GoyoBefore'), function('GoyoAfter')]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Acknowledgement
|
Acknowledgement
|
||||||
|
|||||||
Reference in New Issue
Block a user