We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 959256c commit de240ddCopy full SHA for de240dd
lua/resession/layout.lua
@@ -89,6 +89,10 @@ local function set_winlayout(layout)
89
end
90
else
91
local winids = {}
92
+ local splitright = vim.opt.splitright
93
+ local splitbelow = vim.opt.splitbelow
94
+ vim.opt.splitright = true
95
+ vim.opt.splitbelow = true
96
for i in ipairs(layout[2]) do
97
if i > 1 then
98
if type == "row" then
@@ -99,6 +103,8 @@ local function set_winlayout(layout)
99
103
100
104
table.insert(winids, vim.api.nvim_get_current_win())
101
105
106
+ vim.opt.splitright = splitright
107
+ vim.opt.splitbelow = splitbelow
102
108
for i, v in ipairs(layout[2]) do
109
vim.api.nvim_set_current_win(winids[i])
110
set_winlayout(v)
0 commit comments