Closed distek closed 2 years ago
Colons.
function LazygitFloat()
local cfg = {
ft = 'lazygit',
cmd = "lazygit",
auto_close = true,
dimensions = {
height = 0.9, -- Height of the terminal window
width = 0.9, -- Width of the terminal window
},
}
local term = require('FTerm'):new(cfg)
term:open()
end
This works exactly as intended.
Closing.
Hello!
Having a small issue.
I have the following function:
When I attempt to run this, I get this message:
What am I doing wrong in the above function to get this?
If I just run
require('FTerm').run("lazygit")
, it works fine enough, but I am unable to customize the options in this case.small update: from init.lua for FTerm
I'm getting a
nil
for theprint(cfg)
I added. I must be doing something wrong.Any help is greatly appreciated.
Thanks!