mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-26 05:11:45 +00:00
set powershell as system only for windows
This commit is contained in:
parent
4c96b90236
commit
4c2f4424f7
@ -7,13 +7,15 @@
|
|||||||
vim.api.nvim_exec2('language en_US', {})
|
vim.api.nvim_exec2('language en_US', {})
|
||||||
|
|
||||||
-- Shell options
|
-- Shell options
|
||||||
-- Sets the shell to use for system() and ! commands
|
-- Sets the shell to use for system() and ! commands in windows
|
||||||
vim.opt.shell = 'powershell.exe'
|
if vim.fn.has 'win32' then
|
||||||
vim.opt.shellcmdflag = '-NonInteractive -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command '
|
vim.opt.shell = 'powershell.exe'
|
||||||
vim.opt.shellxquote = ''
|
vim.opt.shellcmdflag = '-NonInteractive -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command '
|
||||||
vim.opt.shellquote = ''
|
vim.opt.shellxquote = ''
|
||||||
vim.opt.shellredir = '2>&1 | Out-File -Encoding UTF8 %s'
|
vim.opt.shellquote = ''
|
||||||
vim.opt.shellpipe = '2>&1 | Out-File -Encoding UTF8 %s'
|
vim.opt.shellredir = '2>&1 | Out-File -Encoding UTF8 %s'
|
||||||
|
vim.opt.shellpipe = '2>&1 | Out-File -Encoding UTF8 %s'
|
||||||
|
end
|
||||||
|
|
||||||
-- Format settings
|
-- Format settings
|
||||||
-- Make line numbers default
|
-- Make line numbers default
|
||||||
|
Loading…
Reference in New Issue
Block a user