mirror of
https://github.com/junegunn/limelight.vim.git
synced 2025-11-16 15:03:47 -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
|
||||
function! GoyoBefore()
|
||||
Limelight
|
||||
endfunction
|
||||
|
||||
function! GoyoAfter()
|
||||
Limelight!
|
||||
endfunction
|
||||
|
||||
let g:goyo_callbacks = [function('GoyoBefore'), function('GoyoAfter')]
|
||||
autocmd User GoyoEnter LimeLight
|
||||
autocmd User GoyoLeave LimeLight!
|
||||
```
|
||||
|
||||
Acknowledgement
|
||||
|
||||
Reference in New Issue
Block a user