-
Notifications
You must be signed in to change notification settings - Fork 36
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
Make vim.ui.input
completion engines friendly
#55
Comments
First, some background on why things are the way they are: There's a bit of conflict between the two sources of configuration for I think a logical next step would be to make the existing To enable context-aware user-specified completion methods, that will be more difficult. I think the first step would be to make a PR to Neovim that adds |
In case you set the completion in call site, is it expected to work? Or will it fail? |
@danielo515 setting the completion from the callsite is expected to work. There was a bug when the completion method was a custom lua function, but it should be fixed in 96b09a0 |
Thanks for your confirmation @stevearc. |
@danielo515 Oh no, I just pushed up that fix. I think that the report was a bug in dressing and not neovim. Try again on the latest master and see if it still repros. |
Oh, ok, sorry for the confusion.
In any case, they already closed the neovim issue with a comment that, for
my personal taste is a bit harsh.
I will try the latest commit and report back, thank you
…On Tue, Aug 23, 2022 at 9:24 PM Steven Arcangeli ***@***.***> wrote:
@danielo515 <https://github.com/danielo515> Oh no, I just pushed up that
fix. I think that the report was a bug in dressing and not neovim. Try
again on the latest master and see if it still repros.
—
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARKJWIF4WMZNQ4GAEGYNP3V2UQOVANCNFSM57CCUMOQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
---
https://danielorodriguez.com
|
Tried the mentioned commit (that specific one) and now it does not crash, but no autocomplete happens either. I am trying the same key to trigger the autocomplete that previously was making it crash, so I guess it's the correct one |
@danielo515 I'm moving your discussion to #57, as this is now quite different from the original posted issue discussing the enabling of autocompletion engines in the input buffer. |
are there any updates on getting completion in DressingInput? by manually adding things to |
I just pushed up commit. If you have both |
wow, this is indeed pretty cool. With this I got a cmdline replacement for -- : via dressing
cmp.setup.filetype("DressingInput", {
sources = cmp.config.sources { {name = "omni"} },
})
keymap("n", ":", function ()
vim.ui.input({ completion = "command"}, function (input)
if not(input) then return end
cmd(input)
end)
end, {desc = ": cmdline replacement"}) unfortunate, that it seems you cannot get multiple completions (e.g., commands and option)? 🤔 |
Unfortunately, the built-in |
I managed to use some weird tricks to allow completion on the input, but with a custom function. Do you have a better approach? |
i want to have path completion. |
See |
Hi, I'm a bit confused as to how one would re-enable completion engines such as
cmp
andmini
as both are currently explicitly disabled with no option to prevent that.Additionally and ideally there would be a hook of some sort that users can setup their completion engines within per
vim.ui.input
call.That way for example when
vim.ui.input
is used to do an LSP rename, one could enablecmp
with sources that make sense in that context (buffer
,spell
,rg
.. etc) which aid in the operation of LSP renaming.It really sounds like I'm asking for some hooks per
vim.ui.input
call here but I didn't want to be vague in order to eliminate any chance of having an XY problem here.I might be missing something obvious here, wdyt?
The text was updated successfully, but these errors were encountered: