فهرست منبع

refactor: allow setting `float_opts` directly

Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
opalmay 2 سال پیش
والد
کامیت
cee6bfda8c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lua/lvim/core/terminal.lua

+ 1 - 1
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,