summaryrefslogtreecommitdiff
path: root/lua/lvim/core/terminal.lua
diff options
context:
space:
mode:
authoropalmay <[email protected]>2023-03-06 20:03:04 +0200
committeropalmay <[email protected]>2023-04-12 13:56:59 +0300
commit5d256e98c61f0c1386bee7a7da923b8dc19a50ad (patch)
treeb9c2f8817f71b66611bfba40b4eff365d10a3fe8 /lua/lvim/core/terminal.lua
parente5410efb7885c10ebba1fa01ac0d8310036eef38 (diff)
chore: formatting
Diffstat (limited to 'lua/lvim/core/terminal.lua')
-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