nvim-tree.lua-float-preview
nvim-tree.lua-float-preview copied to clipboard
Feat/enable preview with key
Since my nvim-tree is a float window i didnt want <Tab> to make a preview in the background which I fixed. I added a user command to toggle a floating window. I can be added to any key with its initial function, like <Tab>. Plus I added a config auto_preview (default = true) to be able to de/activate the auto preview on 'CursorHold'.
refactor: I used the event 'CursorMoved' to close the previous preview window so I can close window more easily when I need to.
I tried to not make any breaking changes.