Skip to content

Commit

Permalink
nvim to behavior as vim to always open shell in split
Browse files Browse the repository at this point in the history
  • Loading branch information
iaalm committed Dec 5, 2023
1 parent 4b7f60e commit 2286625
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/terminal_drawer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ function terminal_drawer#ToggleTerminal() abort
else
" no terminal buffer, create one
let l:cmd = get(g:, 'terminal_drawer_shell', '')
execute 'term ' . l:cmd
if has('nvim')
execute ':sp term://' . l:cmd
else
execute 'term ' . l:cmd
endif
endif
endfunction

0 comments on commit 2286625

Please sign in to comment.