Przeglądaj źródła

refactor: allow setting `float_opts` directly

Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
opalmay 2 lat temu
rodzic
commit
cee6bfda8c
1 zmienionych plików z 1 dodań i 1 usunięć
  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,