format
This commit is contained in:
parent
afd4cb2165
commit
2c23da2999
2 changed files with 13 additions and 12 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue