hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
7.53k stars 377 forks source link

Support completion in `vim.fn.input` #1690

Open ddickstein opened 10 months ago

ddickstein commented 10 months ago

FAQ

Announcement

Minimal reproducible full config

Question is not config-specific.

Description

nvim-cmp doesn't seem to respect the completion option provided to vim.fn.input / vim.ui.input. Is this because it isn't supported (in which case, take this issue as a feature request) or because I need to add some completion source / setting that enables it (if so, just a pointer in the right direction is enough).

Steps to reproduce

Run the following command:

:echo "\rSelected event: ".input("Event> ", "", "event")
  1. Observe that without nvim-cmp, completion of autocmd event names works properly.
  2. Observe that with nvim-cmp, completion does not work.

Expected behavior

Completion works.

Actual behavior

Completion doesn't work (nothing appears; completion keys have no effect)

Additional context

No response

Shougo commented 10 months ago

https://github.com/hrsh7th/nvim-cmp/discussions/1073