fix(lazygit): fix too larg size(100000) for lazygit_toogle method

This commit is contained in:
辛磊 2023-09-04 04:31:14 +08:00
parent 15dc529292
commit c576e3cad0

View file

@ -148,14 +148,18 @@ end
M.lazygit_toggle = function()
local Terminal = require("toggleterm.terminal").Terminal
local columns = vim.o.columns
local lines = vim.o.lines
local lazygit = Terminal:new {
cmd = "lazygit",
hidden = true,
direction = "float",
float_opts = {
border = "none",
width = 100000,
height = 100000,
width = columns or 300,
height = lines or 200,
},
on_open = function(_)
vim.cmd "startinsert!"