fix: #8 autoload when neovim opened with arguments
parent
4863f67101
commit
ba5f0ab091
|
|
@ -110,10 +110,14 @@ end
|
||||||
function M.setup(opts)
|
function M.setup(opts)
|
||||||
config.setup(opts)
|
config.setup(opts)
|
||||||
setup_commands()
|
setup_commands()
|
||||||
if config.options.autoload and (allow_dir() and not ignore_dir()) then
|
if config.options.autoload and (allow_dir() and not ignore_dir()) and vim.fn.argc() == 0 then
|
||||||
M.load()
|
M.load()
|
||||||
end
|
end
|
||||||
if config.options.autosave and (allow_dir() and not ignore_dir() and vim.g.persisting == nil) then
|
if
|
||||||
|
config.options.autosave
|
||||||
|
and (allow_dir() and not ignore_dir() and vim.g.persisting == nil)
|
||||||
|
and vim.fn.argc() == 0
|
||||||
|
then
|
||||||
M.start()
|
M.start()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue