nvim-tree-preview.lua icon indicating copy to clipboard operation
nvim-tree-preview.lua copied to clipboard

feat: have preview open left of nvim-tree if view.side == 'right'

Open richardso21 opened this issue 1 year ago • 0 comments

I personally have nvim-tree open at the right side, so the previous floating preview would block items below the current node being hovered. Here's an example (the preview hides the rest of the items in the project directory): Screenshot 2024-10-13 at 12 23 58 PM

Instead, if config.view.side == 'right' (config deriving from the setup configs from nvim-tree, not this plugin), I calculate the col window offset differently so that the preview won't get in the way: Screenshot 2024-10-13 at 12 49 10 PM

Let me know what you think!

richardso21 avatar Oct 13 '24 16:10 richardso21