mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
fix: don't default to lazy initialization if open_automatic = true (#203)
This commit is contained in:
parent
92914ca691
commit
ea86cd2b05
1 changed files with 5 additions and 1 deletions
|
@ -300,7 +300,11 @@ M.setup = function(opts)
|
|||
create_commands()
|
||||
|
||||
local is_lazy = pending_opts.lazy_load == true
|
||||
or (pending_opts.lazy_load == nil and pending_opts.on_attach == nil)
|
||||
or (
|
||||
pending_opts.lazy_load == nil
|
||||
and pending_opts.on_attach == nil
|
||||
and not pending_opts.open_automatic
|
||||
)
|
||||
pending_opts.lazy_load = is_lazy
|
||||
if not is_lazy then
|
||||
create_autocmds()
|
||||
|
|
Loading…
Reference in a new issue