chore: remove redundant param
parent
98f72045cd
commit
65c5c07bf9
|
|
@ -90,14 +90,7 @@ function M.load(opt)
|
||||||
else
|
else
|
||||||
vim.g.persisting_session = session
|
vim.g.persisting_session = session
|
||||||
end
|
end
|
||||||
|
utils.load_session(session, config.options.before_source, config.options.after_source, config.options.silent)
|
||||||
utils.load_session(
|
|
||||||
session,
|
|
||||||
config.options.before_source,
|
|
||||||
config.options.after_source,
|
|
||||||
config.options.silent,
|
|
||||||
opt.autoload
|
|
||||||
)
|
|
||||||
elseif type(config.options.on_autoload_no_session) == "function" then
|
elseif type(config.options.on_autoload_no_session) == "function" then
|
||||||
config.options.on_autoload_no_session()
|
config.options.on_autoload_no_session()
|
||||||
end
|
end
|
||||||
|
|
@ -114,7 +107,7 @@ function M.autoload()
|
||||||
-- Ensure that no arguments have been passed to Neovim
|
-- Ensure that no arguments have been passed to Neovim
|
||||||
if config.options.autoload and vim.fn.argc() == 0 then
|
if config.options.autoload and vim.fn.argc() == 0 then
|
||||||
if allow_dir() and not ignore_dir() then
|
if allow_dir() and not ignore_dir() then
|
||||||
M.load({ autoload = true })
|
M.load()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue