-
-
Notifications
You must be signed in to change notification settings - Fork 634
feat(#135 float-preview): float preview #2290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Rather than a recipe, we should make this an Official wiki: Extension Plugin. An entry in wiki: Installation should also be added. Ideas for improvements before we publish:
|
Could you add an
If you had a setup user configuration, you could disable / remove that with a warning that minimal is unavailable. |
| @@ -0,0 +1,160 @@ | |||
| local get_node = require("nvim-tree.lib").get_node_at_cursor | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use api.tree.get_node_under_cursor rather than lib
@alex-courtis I fixed all your comments in repo. Should this PR to closed? Or you think integrate this to nvim-tree.lua more correct? |
This looks good. The user has multiple ways to configure i.e.
The level of integration is great: no nvim-tree configuration is required to start and use |
|
Does the user have to local float_preview, float_preview_wrap = require("float-preview"):new({ ... })
function M.on_attach(bufnr)
---
float_preview:attach(bufnr)
vim.keymap.set("n", "<C-t>", float_preview_wrap(api.node.open.tab), opts("Open: New Tab"))
---
end |
|
Unfortunately I still don't understand how the plugin works. I am doing it wrong.
|
|
I've added a draft help file JMarkin/nvim-tree.lua-float-preview#2 It needs some work. |
|
The external plugin is looking good and can be added to the wiki when it's ready. |

Hello, I implemented this feature.
I think this feature would be used like
Recipelike this:Currently it has 2 surprise for me