-
-
Notifications
You must be signed in to change notification settings - Fork 854
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
Remove plenary dependency?! #2552
Comments
I think it makes sense to tackle this here one module at a time; replacing a single stale plenary module with a maintained upstream module is a win itself, even if plenary itself remains a dependency. I should also mention that it's perfectly fine to make feature requests (or PRs) to Neovim if one of the builtin modules is missing something that's needed here (and not too telescope-specific; otherwise just vendoring it here is best). Of course, slimming down plenary and removing obsolete modules (or refactoring them based on upstream) is appreciated as well! I've heard repeatedly that the (understandable) lack of actual development there has dissuaded someone from contributing there. Something to consider is also to more strongly modularize plenary along the lines of https://github.com/echasnovski/mini.nvim (so each module can be installed independently as well). From a brief grep of telescope, here's what's used, with possible replacements:
|
|
I didn't list that because it's not an actual dependency for using telescope; you can handle this purely on the CI side (as we do in nvim-treesitter). |
I would have done it simiar to I need to evaluate every module because i'm no longer that much up to date with neovim development and i also have to look into mini.nvim Edit: |
Of course; This Is The Way. Let me know if you have any questions about the Neovim side (here or on Matrix).
Yes, that is a good argument for having it in core; also consistent cross-platform handling of multibyte characters would be useful to have. |
I think plenary.strings could be quite easily upstreamed I could open a pr for this |
I don't think (In particular, as @Conni2461 wrote, core should make use of Neovim's string handling functions in C as much as possible.) |
my only concern with the way things are for vim.system right now is I don't think it's as performant for doing line based items (which a lot of operations are for neovim). One thing that would be really awesome for vim.system would be some |
Would have really liked |
Nice to see that maybe plenary can just be deprecated soon and a lot of the stuff has been upstreamed (and done better) |
That's not a bad idea; we have (I've also had situations where I'd have preferred a |
|
@lewis6991 from what I could tell, it always tries to put all the stdout into one variable at the end of execution? I have to go look again. My main concern is when you do something like I can take a look again later tho. |
It only does that if you don't provide your own handler. If you provide a handler of the form: function stdout_handler(err, data)
end That will be used instead of collecting the data into a variable. The main point of |
ah, nice. thanks |
I think that project has become a victim of Neovim's success: before the post-0.5 Cambrian Explosion of Lua plugins (and Bram's vim9script push), enticing Vimscript plugin devs with such an API seemed like a great way of growing the Neovim ecosystem. Now I could count the number of plugins profiting from this on one (saw-mill worker's) hand since they'd have to
As it stands, it would make much more sense to add a Neovim-specific high(er) level |
Yeah, but it does make situations like frameworks (denops comes to mind) where you want to have some shared API that works well in both quite nice. (I just wanted to implement the vimscript APIs in Lua basically as wrappers around our code. A lot of it is quite nice for simple stuff that people generally do). Yeah, it's probably not a huge win tho |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@juanandresgs This is a bug by telescope-frecency.nvim. I fixed. Check it. |
With Some examples where this has been done:
|
and replace with vim internals (#2529 (comment)) or maybe we want to slim down plenary
The text was updated successfully, but these errors were encountered: