mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-12 18:34:36 +02:00
feat(util): float_term using lazy's API
This commit is contained in:
parent
b62655f0b9
commit
08e6a880f5
1 changed files with 13 additions and 0 deletions
|
@ -62,4 +62,17 @@ function M.telescope(builtin, opts)
|
|||
end
|
||||
end
|
||||
|
||||
function M.float_term(cmd, opts)
|
||||
opts = vim.tbl_deep_extend("force", {
|
||||
terminal = true,
|
||||
close_on_exit = true,
|
||||
enter = true,
|
||||
float = {
|
||||
size = { width = 0.9, height = 0.9 },
|
||||
margin = { top = 0, right = 0, bottom = 0, left = 0 },
|
||||
},
|
||||
}, opts or {})
|
||||
require("lazy.util").open_cmd(cmd, opts)
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue