mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-26 13:21:45 +00:00
better powershell configuration
This commit is contained in:
parent
9058853062
commit
b93e5eeb7f
@ -9,12 +9,13 @@ vim.api.nvim_exec2('language en_US', {})
|
|||||||
-- Shell options
|
-- Shell options
|
||||||
-- Sets the shell to use for system() and ! commands in windows
|
-- Sets the shell to use for system() and ! commands in windows
|
||||||
if vim.fn.has 'win32' then
|
if vim.fn.has 'win32' then
|
||||||
vim.opt.shell = 'powershell.exe'
|
vim.opt.shell = 'pwsh'
|
||||||
vim.opt.shellcmdflag = '-NonInteractive -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command '
|
vim.opt.shellcmdflag =
|
||||||
|
'-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;'
|
||||||
|
vim.opt.shellredir = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode'
|
||||||
|
vim.opt.shellpipe = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode'
|
||||||
vim.opt.shellxquote = ''
|
vim.opt.shellxquote = ''
|
||||||
vim.opt.shellquote = ''
|
vim.opt.shellquote = ''
|
||||||
vim.opt.shellredir = '2>&1 | Out-File -Encoding UTF8 %s'
|
|
||||||
vim.opt.shellpipe = '2>&1 | Out-File -Encoding UTF8 %s'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Format settings
|
-- Format settings
|
||||||
|
Loading…
Reference in New Issue
Block a user