Skip to content

Commit

Permalink
fix(lsp): close_behavior='auto' shouldn't close aerial when switching…
Browse files Browse the repository at this point in the history
… buffers
  • Loading branch information
stevearc committed Dec 17, 2021
1 parent fd868d3 commit 922155d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/aerial/autocommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local function close_orphans()
end
end

M.on_enter_buffer = function()
M.on_enter_buffer = util.throttle(function()
backends.attach()
if util.is_floating_win() then
return
Expand Down Expand Up @@ -73,7 +73,7 @@ M.on_enter_buffer = function()
end, 5)
end
end
end
end, { delay = 10, reset_timer_on_call = true })

M.on_buf_delete = function(bufnr)
data[tonumber(bufnr)] = nil
Expand Down

0 comments on commit 922155d

Please sign in to comment.