summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authoropalmay <[email protected]>2023-03-06 19:57:36 +0200
committeropalmay <[email protected]>2023-04-12 13:56:59 +0300
commitcee6bfda8c65872b4c490f18cf96181c9ef135b6 (patch)
tree39d9549967a1172fce332cb7082d43321ef090d8 /lua
parentec79c00db9adcba1ccab1a5263f0e24d2ce0dd8e (diff)
refactor: allow setting `float_opts` directly
Co-authored-by: kylo252 <[email protected]>
Diffstat (limited to 'lua')
-rw-r--r--lua/lvim/core/terminal.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lvim/core/terminal.lua b/lua/lvim/core/terminal.lua
index 5e704428..ab2ba4a0 100644
--- a/lua/lvim/core/terminal.lua
+++ b/lua/lvim/core/terminal.lua
@@ -106,7 +106,7 @@ 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 = term_opts.float_opts or {
border = "none",
width = 100000,
height = 100000,