mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-17 07:43:42 -05:00
Apply winfixwidth and winfixheight
This commit is contained in:
@@ -47,7 +47,7 @@ function! s:init_pad(command)
|
|||||||
|
|
||||||
setlocal buftype=nofile bufhidden=wipe nomodifiable nobuflisted noswapfile
|
setlocal buftype=nofile bufhidden=wipe nomodifiable nobuflisted noswapfile
|
||||||
\ nonu nocursorline colorcolumn=
|
\ nonu nocursorline colorcolumn=
|
||||||
\ statusline=\ winwidth=1 winheight=1
|
\ statusline=\ winfixwidth winfixheight
|
||||||
let bufnr = winbufnr(0)
|
let bufnr = winbufnr(0)
|
||||||
|
|
||||||
execute winnr('#') . 'wincmd w'
|
execute winnr('#') . 'wincmd w'
|
||||||
@@ -111,7 +111,9 @@ function! s:goyo_on(width)
|
|||||||
let t:goyo_revert =
|
let t:goyo_revert =
|
||||||
\ { 'laststatus': &laststatus,
|
\ { 'laststatus': &laststatus,
|
||||||
\ 'showtabline': &showtabline,
|
\ 'showtabline': &showtabline,
|
||||||
\ 'fillchars': &fillchars }
|
\ 'fillchars': &fillchars,
|
||||||
|
\ 'winwidth': &winwidth,
|
||||||
|
\ 'winheight': &winheight }
|
||||||
|
|
||||||
" gitgutter
|
" gitgutter
|
||||||
let t:goyo_disabled_gitgutter = get(g:, 'gitgutter_enabled', 0)
|
let t:goyo_disabled_gitgutter = get(g:, 'gitgutter_enabled', 0)
|
||||||
@@ -122,6 +124,8 @@ function! s:goyo_on(width)
|
|||||||
setlocal colorcolumn=
|
setlocal colorcolumn=
|
||||||
setlocal statusline=\
|
setlocal statusline=\
|
||||||
|
|
||||||
|
set winwidth=1
|
||||||
|
set winheight=1
|
||||||
set laststatus=0
|
set laststatus=0
|
||||||
set showtabline=0
|
set showtabline=0
|
||||||
set fillchars+=vert:\
|
set fillchars+=vert:\
|
||||||
|
|||||||
Reference in New Issue
Block a user