summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/lvim/core/terminal.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/lua/lvim/core/terminal.lua b/lua/lvim/core/terminal.lua
index 6eb0f9af..305bcc5c 100644
--- a/lua/lvim/core/terminal.lua
+++ b/lua/lvim/core/terminal.lua
@@ -106,11 +106,12 @@ M.init = function()
-- size == 1 is a special case for full screen
if term_opts.size == 1 then
term_opts.direction = "float"
- term_opts.float_opts = term_opts.float_opts or {
- border = "none",
- width = 100000,
- height = 100000,
- }
+ term_opts.float_opts = term_opts.float_opts
+ or {
+ border = "none",
+ width = 100000,
+ height = 100000,
+ }
end
term_opts.direction = term_opts.direction or lvim.builtin.terminal.terminals_defaults.direction