-
Notifications
You must be signed in to change notification settings - Fork 192
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
snippet support for mini.completion #886
Comments
Thanks for the suggestion! Yes, this is planned after the release of 'mini.snippets'. As 0.10 is released, this will now be possible to start working on. Yet, no concrete plans. I appreciated the suggestion, but 'mini.completion' is one of the messiest module in 'mini.nvim' and I'll tackle it myself. Let's have this issue open so as an extra measure to not forget about it. |
@echasnovski can the 0.11 LSP completion side effects api be used for this? |
I am afraid I am not really sure what you're referring to. Could you link to it, please? But if it is only 0.11, then it probably won't be used as I'd like 'mini.nvim' (and snippet support in 'mini.completion') to support as many versions as possible. Right now it should be possible to support 0.10+ but maybe after 'mini.snippets' this can get better. |
Oh, turns out this wasn't actually added in 0.11 I was referring to the |
I think just using |
@echasnovski another thing that I thought: A lot of the functionality of mini.completion is duplicating the functionality added in core with So perhaps, when 0.11 is released, it would make sense to refactor that plugin to remove all of the custom popup menu item building and rely on |
Purely due to how time works, I'd like to think that it is
Although motivation is sound, there are several crucial problems:
|
I didn't mean that in the sense that you stole the functionality or anything like that :) I purely meant that by installing mini.completion you're now introducing extra code logic duplication. In the same sense I'd say that mini.comment is duplicating the functionality of built-in commenting, despite the fact that the built-in feature was implemented by you and based on mini.comment.
I see, that makes sense. Perhaps when 0.11 is released you should add this note to the "difference from alternatives" section in the mini.completion docs? The reason I asked is that I was playing around with native LSP completion and realized that the only things it lacks for me are pretty colors and proper autocompletion. With the ability to set pretty colors now being implemented (neovim/neovim#30060), I was wondering if there could be a plugin that simply adds autocomplete logic on top of native completion. But I guess just adding an autocmd with a few checks and a timer is enough for basic autocomplete, and it sounds simple enough that I could just do it in my nvim config without a plugin. |
The overlap is not that big, I'd say, and it was already present from 'mini.completion' start (as its core initially was similar to
Yeah, unfortunately, no good way to reuse built-in commenting because there is no exported Lua functions by design (otherwise no merge would happen). 'mini.comment' still offers more on top, though.
Fallback to built-in "usual" completion is a big part of 'mini.completion' and was one of the goals of even creating it. Because not every buffer has LSP attached to it yet autocompletion is still useful.
This doesn't look like a relevant PR. As far as I know, there is no way of setting highlight group in popup menu yet. This functionality needs to go through Vim and vim/vim#15561 seems to be the first step. |
Completion items have a |
Oh, indeed, my bad. It was added around a month ago, didn't catch that. This is a good time to incorporate 'mini.icons' into 'mini.completion' then. Thanks for the info! |
@flexagoon, 'mini.completion' now by default highlights LSP kind (with All in all, thanks for the tip about the new |
After sleeping on it, allowing |
Just checking in to see if mini.snippets development is underway or any updates on roadmap for it :) thanks as usual!! |
Yes, it is in development. |
Awesome! Whenever you need early testers please let me know! |
Contributing guidelines
Module(s)
completion
Description
I already created the issue #882 about having $0 after completion.
I also then created an issue on LSP side where they explained that this is what is coming to Neovim 0.10 natively.
But mini.completion isn't supporting snippets, correct? if so, would you be open to support it or accept PR? currently I have no idea about volume of work to be done for it, but sound interesting and might help me get familiar with all this Lua madness.
The text was updated successfully, but these errors were encountered: