Skip to content

Commit

Permalink
Added correct shellcmdflag for pwsh. Used my own fork of colortuner.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav Lundgren committed Nov 5, 2024
1 parent 306e11d commit 41fc3f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ local opts = {
-- Conditionally add Windows-specific settings.
if is_windows then
opts.shell = 'pwsh'
opts.shellcmdflag = '-c'
opts.shellcmdflag = "-NoLogo -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.UTF8Encoding]::new();$PSDefaultParameterValues['Out-File:Encoding']='utf8';Remove-Alias -Force -ErrorAction SilentlyContinue tee;"
opts.shellredir = "2>&1 | %%{ '$_' } | Out-File %s; exit $LastExitCode"
opts.shellpipe = "2>&1 | %%{ '$_' } | tee %s; exit $LastExitCode"
opts.shellquote = ''
opts.shellxquote = ''
vim.cmd('language messages en') -- Set ui and message language to English.
end

Expand Down
2 changes: 1 addition & 1 deletion src/nvim/lua/config/mini.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ later(function() require('fzf-lua').setup {
}
} end)

now(function() add { source = 'zefei/vim-colortuner' } end)
now(function() add { source = 'kglundgren/vim-colortuner' } end)


-- LSP
Expand Down

0 comments on commit 41fc3f3

Please sign in to comment.