Remove cursorline in goyo mode
This commit is contained in:
parent
f9a5edc8bf
commit
0ac1234126
@ -190,9 +190,19 @@ Plug 'zchee/deoplete-jedi'
|
|||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
||||||
" Goyo and Limelight
|
" Goyo
|
||||||
autocmd! User GoyoEnter Limelight
|
function! s:on_goyo_enter()
|
||||||
autocmd! User GoyoLeave Limelight!
|
setlocal nocursorline
|
||||||
|
Limelight
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:on_goyo_leave()
|
||||||
|
setlocal cursorline
|
||||||
|
Limelight!
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
autocmd! User GoyoEnter nested call <SID>on_goyo_enter()
|
||||||
|
autocmd! User GoyoLeave nested call <SID>on_goyo_leave()
|
||||||
|
|
||||||
|
|
||||||
" Keybinds
|
" Keybinds
|
||||||
|
Reference in New Issue
Block a user