diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-06-04 18:42:09 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-06-04 18:43:00 +0800 |
commit | b7d674cac0aa21bac00c7c26f0d51bd65ec19f13 (patch) | |
tree | 0839e5b087fe6c3d711f4a4e0e365d49b6e53193 /store/config/nvim/lua/setup/win.lua | |
parent | 166bdbc8bfb89b007b1a9ede885af5582074481c (diff) | |
download | crupest-b7d674cac0aa21bac00c7c26f0d51bd65ec19f13.tar.gz crupest-b7d674cac0aa21bac00c7c26f0d51bd65ec19f13.tar.bz2 crupest-b7d674cac0aa21bac00c7c26f0d51bd65ec19f13.zip |
chore(config): move dir.
Diffstat (limited to 'store/config/nvim/lua/setup/win.lua')
-rw-r--r-- | store/config/nvim/lua/setup/win.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/store/config/nvim/lua/setup/win.lua b/store/config/nvim/lua/setup/win.lua new file mode 100644 index 0000000..90e168a --- /dev/null +++ b/store/config/nvim/lua/setup/win.lua @@ -0,0 +1,16 @@ +-- spellchecker: words pwsh +-- spellchecker: ignore shellcmdflag shellredir shellpipe shellquote shellxquote +local function setup() + vim.cmd([[ + let &shell = executable('pwsh') ? 'pwsh' : 'powershell' + let &shellcmdflag = '-NoLogo -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.UTF8Encoding]::new();$PSDefaultParameterValues[''Out-File:Encoding'']=''utf8'';Remove-Alias -Force -ErrorAction SilentlyContinue tee;' + let &shellredir = '2>&1 | %%{ "$_" } | Out-File %s; exit $LastExitCode' + let &shellpipe = '2>&1 | %%{ "$_" } | tee %s; exit $LastExitCode' + set shellquote= shellxquote= + ]]) + vim.opt.completeslash = 'slash' +end + +return { + setup = setup +} |