nvim-tinygit
nvim-tinygit copied to clipboard
Feature Request: Support for pickers other than `telescope`
Feature Requested
Hi @chrisgrieser! Is it possible to add support to use mini.pick for interactive staging. Also the same for mini.notify in place of nvim-notify.
Relevant Screenshot
No response
Checklist
- [x] The feature would be useful to more users than just me.
- [x] I have read the Non-Goals section of the README.
In theory yes, but the implementation of interactive staging is a few hundred lines of code. And writing that multiple times for each picker plugin (fzf-lua, mini-picker, snacks-picker, ...) is simply not sustainable, sorry.
Update due to the 1.0 release:
nvim-notifyis no longer a dependency. You can now use any notification plugin.telescopeis only a hard dependency for interactive staging. For all other cases where a picker is used, the plugin still uses telescope, but due to the tinygit-rewrite, it should be relatively straightforward to add support for other pickers.
If anyone is willing to make PRs for that, check out this file: https://github.com/chrisgrieser/nvim-tinygit/blob/main/lua/tinygit/shared/selector.lua
okay, in the recent update, I went for using vim.ui.select for most things, so this plugin works with any picker.
Only exception interactive staging, which simply requires telescope because that part is too complicated for vim.ui.select, thus still requiring telescope.
So the telescope plugin is still a hard dependency?
For interactive staging, yes. For everything else, you only need a picker that supports vim.ui.select.