Closed jinzhongjia closed 5 months ago
platform: windows 11 version: neovim nightly v0.10.0-dev-2216+g2cd76a758
nightly v0.10.0-dev-2216+g2cd76a758
https://github.com/voldikss/vim-floaterm/issues/249
I try to set shell is pwsh, vim-floaterm does not work correctly.
shell
pwsh
The display is blank, and after I press Enter, it looks like this:
It seems that pwsh is waiting for something from stdin.
I didn't set anything else
And I found this: https://vi.stackexchange.com/questions/40235/an-unknown-element-was-received-sending-commands-to-powershell
It give me the way to solve it:
vim.o.shell = 'pwsh' vim.o.shellxquote = '' vim.o.shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command ' vim.o.shellquote = '' vim.o.shellpipe = '| Out-File -Encoding UTF8 %s' vim.o.shellredir = '| Out-File -Encoding UTF8 %s'
Then it works well.
I didn't know what happen, command :terminal works well when only set shell.
:terminal
I get it, this is not problem of plugin It should be pwsh's problem
Environment
platform: windows 11 version: neovim
nightly v0.10.0-dev-2216+g2cd76a758
Similar issues
https://github.com/voldikss/vim-floaterm/issues/249
What happened?
I try to set
shell
ispwsh
, vim-floaterm does not work correctly.The display is blank, and after I press Enter, it looks like this:
![GIF 2024-1-28 23-15-49](https://github.com/voldikss/vim-floaterm/assets/41784264/3d0a014d-09fc-4d06-a311-e7469af602f5)
It seems that
pwsh
is waiting for something from stdin.I didn't set anything else
And I found this: https://vi.stackexchange.com/questions/40235/an-unknown-element-was-received-sending-commands-to-powershell
It give me the way to solve it:
Then it works well.
I didn't know what happen, command
:terminal
works well when only setshell
.