浏览代码

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,