hedyhli / outline.nvim

Code outline sidebar powered by LSP. Significantly enhanced & refactored fork of symbols-outline.nvim.
https://sr.ht/~hedy/outline.nvim
MIT License
543 stars 15 forks source link

prevent :e to open files in the outline buffer #60

Open naps62 opened 4 months ago

naps62 commented 4 months ago

Try the following:

when opening the outline again at the end of this process, I get an error:

image

This is something that neo-tree.nvim and other file explorer plugins prevent. when you accidentally open a file while focused on the file explorer buffer (by :e, or telescope, or some other method), the file is magically opened not on the file explorer buffer, but on the "parent".

I'm not sure how this is achieved, but would be awesome to have the outline window behave in a similar way

LeonardoMor commented 3 months ago

This can be fixed by setting winfixbuf when available on the outline window. This is on NeoVim nightly for now. See this issue.

In the meantime, there's stickybuf.nvim