Closed phgz closed 1 year ago
type
(nothing happens)
It is not nothing happens. The popup menu seems closed.
Fixed.
reopen menu (menu items are not updated)
The update is feature. Because you don't set filter in your config. No magic.
Thanks for 2abe9a6!
Sorry I forgot to put matcher in minimal repro.
Add:
set rtp+=~/ddc-matcher_head
in init.vim
.
Change sourceOptions
to
sourceOptions: {
_: {
matchers: ["matcher_head"],
minAutoCompleteLength : 1,
},
around: {
mark: "A",
},
},
in ddc-config.ts
.
In the video (after patch), I first use regular native + around for completion (items update), then manual complete with native + around (items stay the same).
Fixed the behavior.
But you need to know the documentation.
*ddc#map#manual_complete()*
ddc#map#manual_complete([{options}])
Manual trigger ddc completion.
{options} is |ddc-options|.
NOTE: Manual completion ignores
|ddc-source-option-minAutoCompleteLength|.
NOTE: After you open completion UI in manual completion, your
next input will be used as manual completion until the items
are empty or |ddc#hide()| is called.
It is the limitation behavior.
Thank you very much!
Problems summary
ddc#map#manual_complete
(with UI "native") does not open after first trigger or does not update when typing. I do not know if this problem is related to "native" UI or ddc itself.Expected
A single call to the function should open the UI and typing text should update items.
Environment Information
ddc.vim version (SHA1): 3b823fa
denops.vim version (SHA1): 22e7ae3
deno version(
deno -V
output): 1.36.0OS: macOS 13.5
neovim/Vim
:version
output: NVIM v0.10.0 (SHA1 30a5c28c8)Provide a minimal init.vim/vimrc without plugin managers (Required!)
ddc-config.ts
How to reproduce the problem from neovim/Vim startup (Required!)
init.vim
fileo
(new line in insert mode)<S-Tab>
(nothing happens)<S-Tab>
(menu now opens)