master #1

Open
oli wants to merge 912 commits from master into lua
Showing only changes of commit 02182b7711 - Show all commits

View File

@@ -18,10 +18,14 @@ return {
})
local Terminal = require('toggleterm.terminal').Terminal
function _lazygit_toggle()
local lazygit = Terminal:new({
cmd = 'lazygit',
dir = vim.fn.getcwd(),
direction = 'float',
cwd = function()
return vim.fn.getcwd()
end,
float_opts = {
border = 'double',
},
@@ -35,9 +39,7 @@ return {
vim.cmd('startinsert!')
end,
})
function _lazygit_toggle()
lazygit:toggle()
lazygit:open()
end
end,
keys = {