This commit is contained in:
Barrett Ruth 2025-09-12 09:22:04 -05:00
parent afd4cb2165
commit 2c23da2999
2 changed files with 13 additions and 12 deletions

View file

@ -16,7 +16,6 @@ if not vim.fn.has("nvim-0.10.0") then
return M return M
end end
local function get_plugin_path() local function get_plugin_path()
local plugin_path = debug.getinfo(1, "S").source:sub(2) local plugin_path = debug.getinfo(1, "S").source:sub(2)
return vim.fn.fnamemodify(plugin_path, ":h:h:h") return vim.fn.fnamemodify(plugin_path, ":h:h:h")

View file

@ -30,7 +30,9 @@ function M.save_layout()
end end
function M.restore_layout(state) function M.restore_layout(state)
if not state then return end if not state then
return
end
vim.cmd.diffoff() vim.cmd.diffoff()
vim.cmd(state.layout) vim.cmd(state.layout)