Kill-buffer not returning to previous buffer

Before doom emacs, I had the following behaviour. Give two buffers, A and C, in that (tab) order:

  1. In buffer A, open new file in buffer B, now buffers/tabs look like A, B, C
  2. kill-buffer B (C-x k)
  3. Back in buffer A

Currently, after killing buffer B, it switches to buffer C. Drives me mad. I tried adding (previous-buffer) to kill-buffer-hook which did work but since this hook seems to be called all over the place, it had horrible side-effects. Any ideas?

Seems like it’s what centaur-tabs adds something to the kill-buffer-hook. Removing this fixes it.

(remove-hook 'kill-buffer-hook 'centaur-tabs-buffer-track-killed)