neo-tree.nvim icon indicating copy to clipboard operation
neo-tree.nvim copied to clipboard

How to completion in input window?

Open adoyle-h opened this issue 2 years ago • 3 comments

I'm using https://github.com/hrsh7th/nvim-cmp and I want to complete paths in input window when add/rename/move/copy the files and directories.

CleanShot 2023-03-21 at 15 14 49@2x

I read the code and find it is not work.

  1. The callers of inputs.input not pass the parameter completion.

https://github.com/nvim-neo-tree/neo-tree.nvim/blob/20c2f2f5ba083bbb1e37b8bc3d590621434f31e9/lua/neo-tree/sources/filesystem/lib/fs_actions.lua#L334-L383

https://github.com/nvim-neo-tree/neo-tree.nvim/blob/20c2f2f5ba083bbb1e37b8bc3d590621434f31e9/lua/neo-tree/ui/inputs.lua#L32-L53

  1. When use_popups_for_input = true, should_use_popup_input() is true. But there is no handle for completion, and the nui.input has no completion option.

Do you have any plan to implement the completion? I could help to implement it. I just want to use nvim-cmp to complete paths and use the keymaps of nvim-cmp to trigger completion.

adoyle-h avatar Mar 21 '23 07:03 adoyle-h

Do you have any plan to implement the completion? I could help to implement it. I just want to use nvim-cmp to complete paths and use the keymaps of nvim-cmp to trigger completion.

I have no plans to add this feature, but it sounds like a great idea if you can get it to work!

cseickel avatar Mar 21 '23 11:03 cseickel

Would be awesome!

franklouwers avatar Mar 28 '24 11:03 franklouwers

Would live to see it too <3

Curs3W4ll avatar Jun 08 '24 03:06 Curs3W4ll