Config
This commit is contained in:
parent
7201dc4801
commit
be36a60446
36 changed files with 800 additions and 7 deletions
18
lua/custom/plugins/shell.lua
Normal file
18
lua/custom/plugins/shell.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
vim.opt.shell = 'pwsh'
|
||||
vim.opt.shellcmdflag =
|
||||
"-NoProfile -NoLogo -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.UTF8Encoding]::new();$PSDefaultParameterValues['Out-File:Encoding']='utf8';$PSStyle.OutputRendering = [System.Management.Automation.OutputRendering]::PlainText;"
|
||||
vim.opt.shellredir = '2>&1 | %%{ "$_" } | Out-File %s; exit $LastExitCode'
|
||||
vim.opt.shellpipe = '2>&1 | %%{ "$_" } | Tee-Object %s; exit $LastExitCode'
|
||||
vim.opt.shellquote = ''
|
||||
vim.opt.shellxquote = ''
|
||||
|
||||
vim.api.nvim_create_user_command('Pterm', 'term pwsh', {})
|
||||
vim.api.nvim_create_user_command('PT', 'term pwsh', {})
|
||||
vim.api.nvim_create_user_command('Uterm', 'term wsl.exe', {})
|
||||
vim.api.nvim_create_user_command('UT', 'term wsl.exe', {})
|
||||
vim.api.nvim_create_user_command('BDAll', '%bd! | e#', {})
|
||||
vim.api.nvim_create_user_command('NT', 'bd! % | term', {})
|
||||
vim.api.nvim_create_user_command('NUT', 'bd! % | Uterm', {})
|
||||
vim.api.nvim_create_user_command('CC', 'CopilotChat', {})
|
||||
|
||||
return {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue