aerial.nvim icon indicating copy to clipboard operation
aerial.nvim copied to clipboard

Open aerial next to the focused window

Open shibotto opened this issue 1 year ago • 1 comments

System information

  • OS: GNU/Linux
  • Neovim version: 0.7.2

Steps to reproduce

  1. Open two or more windows of the same buffer

When not floating, aerial opens either to the left of the first window or to the right of the last one. Take a look at the screenshots (notice the focused window):

aerial

Would it be possible to always have it spawned next to the focused window, to achieve something like this?

aerial2

shibotto avatar Aug 02 '22 09:08 shibotto

Shouldn't be too hard to add support for this, but I'll need to add another config option for it. Will look into it soon

stevearc avatar Aug 02 '22 15:08 stevearc

I've refactored some of the options (in a backwards-compatible way). The following should do what you want:

require('aerial').setup({
  layout = {
    placement = 'window',
  },
})

stevearc avatar Aug 04 '22 05:08 stevearc

This is simply perfect, thank you very much! ❤️

shibotto avatar Aug 04 '22 19:08 shibotto