nvim-toggle-terminal icon indicating copy to clipboard operation
nvim-toggle-terminal copied to clipboard

How can I split terminal (horizontal or vertical) and change default terminal to powershell?

Open baroxFPTU opened this issue 3 years ago • 1 comments

I didn't see any description about split and change terminals. Have you supported it yet?

If not, how can I custom by myself?

Thank you

baroxFPTU avatar Aug 30 '22 02:08 baroxFPTU

Hi @baroxFPTU

for open the terminal in a split, you can add a mapping like nnoremap <something> :split | ToggleTerminal but you'll have to keep track of the split and close it if you want that to also toggle. you can have a look at nvim_toggle_terminal.vim to understand how the terminals are handled. I keep this plugging minimal, because I only use it to toggle the terminal buffer in the same window :)

Regarding you second question, I assume you are using windows right? I haven't tested this plugin on windows, and I am not familiar with it, but since the shell that you run isn't managed by neovim itself, I guess in windows should be the same, so you'll probably have to configure it outside neovim.

caenrique avatar Sep 01 '22 09:09 caenrique