this repo has no description
1local Terminal = require("toggleterm.terminal").Terminal
2
3-- Create a lazygit fullscreen terminal
4local lazygit = Terminal:new({
5 cmd = "lazygit",
6 direction = "float", -- This can use "horizontal" or "vertical" if float doesn't fill
7 float_opts = {
8 border = "none", -- or single/double if you prefer
9 width = function()
10 return vim.o.columns
11 end, -- full width
12 height = function()
13 return vim.o.lines
14 end, -- full height
15 },
16 -- adjust other options as needed
17 hidden = true,
18})
19
20function _LAZYGIT_TOGGLE()
21 lazygit:toggle()
22end
23
24vim.cmd("command! LazyGit lua _LAZYGIT_TOGGLE()")