Replies: 1 comment 5 replies
-
I've not reviewed your entire post, however I think Vinegar Style should meet your needs. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Until now I've been using
open_replacing_current_buffer
which seems to be a legacy API (ref: #1918). It was working as expected for long time, but recently it broke. More specifically, what is not working is selecting a file nvim-tree is opened.I've tried the new one (
api.tree.toggle
), but still doesn't fit my use case.I feel this is kinda related to this: #1829, but I am not 100% sure.
Here are 2 screen captures which would be pretty self-explanatory. Note the example uses pretty simple file structure and used for a simple show-case, the real world example would have a lot of directory nesting.
I would like to have my nvim-tree buffer replaced when I choose a file outside nvim-tree. For the purpose of the video, I use Telescope, but similar behavior is observed if
:edit a.txt
command is used.Am I missing something or should I file a bug?
Reproduction
require'nvim-tree'.open_replacing_current_buffer()
Screen.Recording.2023-05-12.at.10.44.59.mov
Here the buffer just flashes.
require'nvim-tree.api'.tree.toggle({current_window=true})
Screen.Recording.2023-05-12.at.10.45.42.mov
Here a new buffer is created.
Beta Was this translation helpful? Give feedback.
All reactions