Disable relativenumber in utility windows; disable textwidth in neovim too

This commit is contained in:
Ben Jackson 2020-07-16 08:13:27 +01:00
commit a4f3fd9c5e
2 changed files with 2 additions and 0 deletions

View file

@ -176,6 +176,7 @@ function! s:SetUpHiddenBuffer( buffer ) abort
call setbufvar( a:buffer, '&bufhidden', 'hide' )
call setbufvar( a:buffer, '&wrap', 0 )
call setbufvar( a:buffer, '&swapfile', 0 )
call setbufvar( a:buffer, '&textwidth', 0 )
call s:MakeBufferReadOnly( a:buffer )
endfunction

View file

@ -144,6 +144,7 @@ def SetUpPromptBuffer( buf, name, prompt, callback ):
def SetUpUIWindow( win ):
win.options[ 'wrap' ] = False
win.options[ 'number' ] = False
win.options[ 'relativenumber' ] = False
win.options[ 'signcolumn' ] = 'no'
win.options[ 'spell' ] = False
win.options[ 'list' ] = False