blob: 6bf4f14bc477ecd57cf802230c8f4696a9a77996 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
local Terminal = require('toggleterm.terminal').Terminal
local lazygit = Terminal:new({
cmd = "lazygit",
hidden = true,
direction = "float",
float_opts = {
border = "double",
},
})
function _lazygit_toggle()
lazygit:toggle()
end
vim.keymap.set("n", "<leader>g", "<cmd> lua _lazygit_toggle() <CR>", {noremap = true, silent = true})
|