mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-25 04:41:46 +00:00
profiled pwsh execution for presets
This commit is contained in:
parent
4675abf4fa
commit
d1503995c8
@ -10,8 +10,7 @@ vim.api.nvim_exec2('language en_US', {})
|
|||||||
-- 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' == 1 and vim.fn.has 'wsl' == 0 then
|
if vim.fn.has 'win32' == 1 and vim.fn.has 'wsl' == 0 then
|
||||||
vim.opt.shell = vim.fn.executable 'pwsh' == 1 and 'pwsh' or 'powershell'
|
vim.opt.shell = vim.fn.executable 'pwsh' == 1 and 'pwsh' or 'powershell'
|
||||||
vim.opt.shellcmdflag =
|
vim.opt.shellcmdflag = '-NoLogo -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;'
|
||||||
'-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;'
|
|
||||||
vim.opt.shellredir = '-RedirectStandardOutput %s -NoNewWindow -Wait'
|
vim.opt.shellredir = '-RedirectStandardOutput %s -NoNewWindow -Wait'
|
||||||
vim.opt.shellpipe = '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 = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user