mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
fix(lazygit): fix too larg size(100000) for lazygit_toogle method
This commit is contained in:
parent
15dc529292
commit
c576e3cad0
1 changed files with 6 additions and 2 deletions
|
@ -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!"
|
||||
|
|
Loading…
Reference in a new issue