Skip to content

Commit

Permalink
fix: don't default to lazy initialization if open_automatic = true (#203
Browse files Browse the repository at this point in the history
)
  • Loading branch information
stevearc committed Jan 5, 2023
1 parent 92914ca commit ea86cd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/aerial/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ea86cd2

Please sign in to comment.