Disable swap files in the neovim buffers too
This commit is contained in:
parent
c2b0cc8f18
commit
099ffc2af9
1 changed files with 4 additions and 5 deletions
|
|
@ -48,11 +48,11 @@ function! vimspector#internal#neojob#StartDebugSession( config ) abort
|
||||||
\ 'on_stderr': funcref( 's:_OnEvent' ),
|
\ 'on_stderr': funcref( 's:_OnEvent' ),
|
||||||
\ 'on_exit': funcref( 's:_OnEvent' ),
|
\ 'on_exit': funcref( 's:_OnEvent' ),
|
||||||
\ 'cwd': a:config[ 'cwd' ],
|
\ 'cwd': a:config[ 'cwd' ],
|
||||||
|
\ 'env': a:config[ 'env' ],
|
||||||
\ }
|
\ }
|
||||||
\ )
|
\ )
|
||||||
|
|
||||||
" FIXME: Missing in neovim 0.4. But in master:
|
" FIXME: Missing in neovim 0.4. But in master:
|
||||||
" \ 'env': a:config[ 'env' ],
|
|
||||||
"
|
"
|
||||||
|
|
||||||
" FIXME: error handling ?
|
" FIXME: error handling ?
|
||||||
|
|
@ -82,14 +82,12 @@ endfunction
|
||||||
|
|
||||||
function! vimspector#internal#neojob#StopDebugSession() abort
|
function! vimspector#internal#neojob#StopDebugSession() abort
|
||||||
if !exists( 's:job' )
|
if !exists( 's:job' )
|
||||||
echom "Not stopping session: Job doesn't exist"
|
|
||||||
redraw
|
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if s:JobIsRunning( s:job )
|
if s:JobIsRunning( s:job )
|
||||||
echom 'Terminating job'
|
echom 'Terminating job'
|
||||||
redraw
|
redraw
|
||||||
call jobstop( s:job )
|
call jobstop( s:job )
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
@ -145,6 +143,7 @@ function! s:SetUpHiddenBuffer( buffer ) abort
|
||||||
call setbufvar( a:buffer, '&hidden', 1 )
|
call setbufvar( a:buffer, '&hidden', 1 )
|
||||||
call setbufvar( a:buffer, '&bufhidden', 'hide' )
|
call setbufvar( a:buffer, '&bufhidden', 'hide' )
|
||||||
call setbufvar( a:buffer, '&wrap', 0 )
|
call setbufvar( a:buffer, '&wrap', 0 )
|
||||||
|
call setbufvar( a:buffer, '&swapfile', 0 )
|
||||||
call s:MakeBufferReadOnly( a:buffer )
|
call s:MakeBufferReadOnly( a:buffer )
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue