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()
|
||||
|
||||
|
||||
" Goyo and Limelight
|
||||
autocmd! User GoyoEnter Limelight
|
||||
autocmd! User GoyoLeave Limelight!
|
||||
" Goyo
|
||||
function! s:on_goyo_enter()
|
||||
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
|
||||
|
Reference in New Issue
Block a user