fix: toggleterm on gitbash
This commit is contained in:
parent
1f5668382c
commit
cb7a183ce4
4
init.lua
4
init.lua
|
|
@ -7,6 +7,10 @@ else
|
|||
require("config.lazy")
|
||||
end
|
||||
|
||||
if vim.fn.has('win32') == 1 then
|
||||
vim.opt.shell = 'cmd.exe'
|
||||
end
|
||||
|
||||
vim.opt.guifont="FiraCode Nerd Font Mono,Microsoft YaHei,微软雅黑:h12"
|
||||
|
||||
vim.opt.clipboard = 'unnamedplus'
|
||||
|
|
|
|||
|
|
@ -89,7 +89,11 @@ return {
|
|||
'akinsho/toggleterm.nvim',
|
||||
config = function()
|
||||
local Terminal = require('toggleterm.terminal').Terminal
|
||||
local lazygit = Terminal:new({ cmd = "lazygit.exe", hidden = true, direction = 'float'})
|
||||
local lazygit = Terminal:new({
|
||||
cmd = "lazygit",
|
||||
hidden = true,
|
||||
direction = 'float',
|
||||
})
|
||||
|
||||
function _lazygit_toggle()
|
||||
lazygit:toggle()
|
||||
|
|
|
|||
Loading…
Reference in New Issue