mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-16 15:23:50 -05:00
Set statusline according to winwidth() for bg-less color schemes
This commit is contained in:
@@ -126,7 +126,6 @@ function! s:goyo_on(width)
|
|||||||
|
|
||||||
set nonu nornu
|
set nonu nornu
|
||||||
set colorcolumn=
|
set colorcolumn=
|
||||||
set statusline=\
|
|
||||||
set winwidth=1
|
set winwidth=1
|
||||||
set winheight=1
|
set winheight=1
|
||||||
set laststatus=0
|
set laststatus=0
|
||||||
@@ -143,6 +142,8 @@ function! s:goyo_on(width)
|
|||||||
call s:resize_pads()
|
call s:resize_pads()
|
||||||
call s:tranquilize()
|
call s:tranquilize()
|
||||||
|
|
||||||
|
let &statusline = repeat(' ', winwidth(0))
|
||||||
|
|
||||||
augroup goyo
|
augroup goyo
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWinLeave <buffer> call s:goyo_off()
|
autocmd BufWinLeave <buffer> call s:goyo_off()
|
||||||
|
|||||||
Reference in New Issue
Block a user