Skip to content

Commit

Permalink
fix: add padding underneath terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
goolord committed Mar 21, 2023
1 parent 3847d6b commit dafa11a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/alpha/term.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ vim.api.nvim_create_autocmd("User", {
end,
})

function alpha.layout_element.terminal(el, _, _)
function alpha.layout_element.terminal(el, conf, state)
if el.opts and (el.opts.redraw == nil or el.opts.redraw) then
el.opts.redraw = false
M.run_command(el.command, el)
end
return {}, {}
return alpha.layout_element.padding({ type = "padding", val = el.height }, conf, state)
end

function alpha.keymaps_element.terminal(_, _, _) end
function alpha.keymaps_element.terminal(_, _, _)
end

return M

0 comments on commit dafa11a

Please sign in to comment.