Fix the terminal window to 80 columns

This commit is contained in:
Ben Jackson 2020-07-11 14:08:45 +01:00
commit 7c943c2ed7
2 changed files with 8 additions and 3 deletions

View file

@ -46,12 +46,17 @@ function! vimspector#internal#neoterm#ResetEnvironment( env, old_env ) abort
endfunction
function! vimspector#internal#neoterm#Start( cmd, opts ) abort
" Prepare current buffer to be turned into a term if curwin is not set
if ! get( a:opts, 'curwin', 0 )
let mods = ''
if get( a:opts, 'vertical', 0 )
vnew
let mods .= 'vertical '
let mods .= get( a:opts, 'term_cols', '' )
else
new
let mods .= get( a:opts, 'term_rows', '' )
endif
execute mods . 'new'
endif
" HACK: Neovim's termopen doesn't support env

View file

@ -40,7 +40,6 @@ class CodeView( object ):
'breakpoints': []
}
with utils.LetCurrentWindow( self._window ):
vim.command( 'nnoremenu WinBar.Continue :call vimspector#Continue()<CR>' )
vim.command( 'nnoremenu WinBar.Next :call vimspector#StepOver()<CR>' )
@ -221,6 +220,7 @@ class CodeView( object ):
options = {
'vertical': 1,
'term_cols': 80,
'norestore': 1,
'cwd': cwd,
'env': env,