瀏覽代碼

revert float_opts

opalmay 2 年之前
父節點
當前提交
844e59f062
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. 5 6
      lua/lvim/core/terminal.lua

+ 5 - 6
lua/lvim/core/terminal.lua

@@ -106,12 +106,11 @@ 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 = {
+        border = "none",
+        width = 100000,
+        height = 100000,
+      }
     end
 
     term_opts.direction = term_opts.direction or lvim.builtin.terminal.terminals_defaults.direction