Open Kang-geophysics opened 2 weeks ago
I'm having the same issue with vim.opt.shell = 'pwsh'
using packer.nvim as my package manager.
This is my current workaround:
use({
'kdheepak/lazygit.nvim',
requires = {
'nvim-lua/plenary.nvim',
},
config = function()
if SystemOS == "Windows" then -- SystemOS is a dynamic var set in init.lua
vim.schedule(function()
vim.api.nvim_create_user_command(
"LazyGit",
function()
local current = vim.opt.shell
vim.opt.shell='cmd'
require'lazygit'.lazygit()
vim.opt.shell=current
end,
{ force = true }
)
end)
end
end
})
Description
To Reproduce I use "Lazy" package manager. I initialized as follows:
Expected behavior
What is expected to happen:
Screenshots![image](https://github.com/kdheepak/lazygit.nvim/assets/56065588/961a1dd3-709e-4fdf-b9aa-3e27560b8dbf)
Desktop (please complete the following information):
If I unset
vim.opt.shell
, it works well.I think, lazygit.nvim seems to use termianl related with
vim.opt.shell
. Thus, I tried to use 'git-bash.'I want to set terminal emulator as git-bash. How can I solve it?