TheBlob42 / drex.nvim

Another directory/file explorer for Neovim written in Lua
GNU General Public License v3.0
96 stars 8 forks source link

prevent another buffer hijacking drex drawer window? #34

Closed ZenLian closed 1 year ago

ZenLian commented 1 year ago

If you open another buffer(e.g. :edit file) in drex drawer, the new buffer hijacks drex drawer window. Is there any way to prevent this happening, like what neo-tree did?

TheBlob42 commented 1 year ago

I actually hacked together a snippet exactly for this case a few weeks back :slightly_smiling_face: You can find it in the wiki here. Have a look if this is a sufficient solution for your case or if your missing anything.

I do not know how neo-tree actually archives this and I haven't found it after a brief look into their source code. But if somebody has more knowledge about it, I would be interested if their solution does not interfere with the alternate buffer and the jump list :thinking:

ZenLian commented 1 year ago

Thanks! And I think you are right, maybe better if it stays in user's configuration.