Fix the terminal window to 80 columns
This commit is contained in:
parent
036c9b9605
commit
7c943c2ed7
2 changed files with 8 additions and 3 deletions
|
|
@ -46,12 +46,17 @@ function! vimspector#internal#neoterm#ResetEnvironment( env, old_env ) abort
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! vimspector#internal#neoterm#Start( cmd, opts ) abort
|
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 )
|
if ! get( a:opts, 'curwin', 0 )
|
||||||
|
let mods = ''
|
||||||
if get( a:opts, 'vertical', 0 )
|
if get( a:opts, 'vertical', 0 )
|
||||||
vnew
|
let mods .= 'vertical '
|
||||||
|
let mods .= get( a:opts, 'term_cols', '' )
|
||||||
else
|
else
|
||||||
new
|
let mods .= get( a:opts, 'term_rows', '' )
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
execute mods . 'new'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" HACK: Neovim's termopen doesn't support env
|
" HACK: Neovim's termopen doesn't support env
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ class CodeView( object ):
|
||||||
'breakpoints': []
|
'breakpoints': []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
with utils.LetCurrentWindow( self._window ):
|
with utils.LetCurrentWindow( self._window ):
|
||||||
vim.command( 'nnoremenu WinBar.Continue :call vimspector#Continue()<CR>' )
|
vim.command( 'nnoremenu WinBar.Continue :call vimspector#Continue()<CR>' )
|
||||||
vim.command( 'nnoremenu WinBar.Next :call vimspector#StepOver()<CR>' )
|
vim.command( 'nnoremenu WinBar.Next :call vimspector#StepOver()<CR>' )
|
||||||
|
|
@ -221,6 +220,7 @@ class CodeView( object ):
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
'vertical': 1,
|
'vertical': 1,
|
||||||
|
'term_cols': 80,
|
||||||
'norestore': 1,
|
'norestore': 1,
|
||||||
'cwd': cwd,
|
'cwd': cwd,
|
||||||
'env': env,
|
'env': env,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue