Correct typos

main
olimorris 2021-09-07 19:57:22 +01:00
parent 1386bac1a6
commit f4e7632db2
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ function M.start()
end end
function M.stop() function M.stop()
vim.g.using_persistance = nil vim.g.using_persistence = nil
vim.cmd([[ vim.cmd([[
autocmd! Persistence autocmd! Persistence
augroup! Persistence augroup! Persistence
@ -58,14 +58,14 @@ function M.save()
vim.o.sessionoptions = table.concat(Config.options.options, ",") vim.o.sessionoptions = table.concat(Config.options.options, ",")
vim.cmd("mks! " .. e(M.get_current())) vim.cmd("mks! " .. e(M.get_current()))
vim.o.sessionoptions = tmp vim.o.sessionoptions = tmp
vim.g.using_persistance = e(M.get_current()) vim.g.using_persistence = e(M.get_current())
end end
function M.load(opt) function M.load(opt)
opt = opt or {} opt = opt or {}
local sfile = opt.last and M.get_last() or M.get_current() local sfile = opt.last and M.get_last() or M.get_current()
if sfile and vim.fn.filereadable(sfile) ~= 0 then if sfile and vim.fn.filereadable(sfile) ~= 0 then
vim.g.using_persistance = e(sfile) vim.g.using_persistence = e(sfile)
vim.cmd("source " .. e(sfile)) vim.cmd("source " .. e(sfile))
end end
end end