obsidian-nvim/obsidian.nvim#364 there's this issue in my repo that has been there a while, and I visit this repo from time to time to see if live grep has landed, and i found it has got it today, so I went ahead trying to integrate this plugin
but I do find the implementations a bit weird and very limited, I get the fact that this set out as a file picker, but passing a callback is just the most natural thing, and there's a open_with_callback but that is not what drives the main APIs like find_files and live_grep
API-wise, after not finding a clear API guide in the readme, I just grep these calls I want to make in your repo, but finding these are still not enough for my needs, since there's no really types in the opts param, just a table, I had to further trace the next level of functions that they calls. that really is not ideal for a repo that seems mature with many users.
and the type annotations I found is just simply wrong: https://github.com/dmtrKovalenko/fff.nvim/blob/9bc928db65be91a4c580d5ca8d1844ad9901d24c/lua/fff/picker_ui.lua#L2488-L2488
typing opts like this is just not valid type annotation for either lua-ls or emmylua-ls, it is just helping no one sitting there, seems too big of a mistake to have just sit around in such an active repo for 4 months
ok after this I found even more recent similar styled annotations, so maybe @dmtrKovalenko prefers this, but aren't you getting any diagnostics? and it is just not easy for others to call your code like this
obsidian-nvim/obsidian.nvim#364 there's this issue in my repo that has been there a while, and I visit this repo from time to time to see if live grep has landed, and i found it has got it today, so I went ahead trying to integrate this plugin
but I do find the implementations a bit weird and very limited, I get the fact that this set out as a file picker, but passing a callback is just the most natural thing, and there's a
open_with_callbackbut that is not what drives the main APIs likefind_filesandlive_grepAPI-wise, after not finding a clear API guide in the readme, I just grep these calls I want to make in your repo, but finding these are still not enough for my needs, since there's no really types in the
optsparam, just atable, I had to further trace the next level of functions that they calls. that really is not ideal for a repo that seems mature with many users.and the type annotations I found is just simply wrong: https://github.com/dmtrKovalenko/fff.nvim/blob/9bc928db65be91a4c580d5ca8d1844ad9901d24c/lua/fff/picker_ui.lua#L2488-L2488
typing
optslike this is just not valid type annotation for either lua-ls or emmylua-ls, it is just helping no one sitting there, seems too big of a mistake to have just sit around in such an active repo for 4 monthsok after this I found even more recent similar styled annotations, so maybe @dmtrKovalenko prefers this, but aren't you getting any diagnostics? and it is just not easy for others to call your code like this