neo-tree.nvim
neo-tree.nvim copied to clipboard
Preview in float changes position of floating neo-tree
Love this feature. Just wanted to raise a bug where the calling window (e.g. side = right) doesn't get restored on revert_preview (become side = left).
Originally posted by @axieax in https://github.com/nvim-neo-tree/neo-tree.nvim/issues/502#issuecomment-1244785594
@axieax You are talking about when Neo-tree is opened as a float window, right?
@axieax You are talking about when Neo-tree is opened as a float window, right?
yep!
Seems like opening the preview doesn't respect the position either. Would be nice if this layout takes the Neo-tree position into account, and fills the remaining space with the preview.
Example config: https://github.com/axieax/dotconfig/blob/4870bba67f90f068f9e01dae547c49d1c0cbadb2/nvim/lua/axie/plugins/neotree.lua
Came to report this as well, glad this is already reported.
Here's a video of the issue. Notice also that the explorer doesn't goes back to its original position when the preview is closed.
https://github.com/nvim-neo-tree/neo-tree.nvim/assets/16341644/24c9dd08-db7a-4911-9a6e-be88237dc699