Executes buffer's powershell code in neovim's terminal.
- Powershell Core : https://github.com/PowerShell/PowerShell#get-powershell
Plug 'JayDoubleu/vim-pwsh-exec'
:PWSHEXECbuffer
: to execute entire buffer:PWSHEXECline
: to execute current line:PWSHEXECselection
to execute current selection.
Or map to key in your init.vim :
autocmd FileType ps1 noremap <KEY> :PWSHEXEC...<CR>