hrsh7th / nvim-cmp

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

feature request: multiline ghost text #1862

Closed xzbdmw closed 3 weeks ago

xzbdmw commented 3 months ago

In vscode:

image

in cmp:

截屏2024-03-24 17 34 20

Any help to guide me to compelete the feature is appreciated.

xzbdmw commented 3 months ago

Hmm, it needs to expand snippets early, but I don't see proper api in luasnippet to return raw text, some hack in luasnippet to make it happen. image There are additional benefits that ghost text no longer contain placeholders

截屏2024-03-24 23 10 34
xzbdmw commented 3 months ago

And copilot-cmp can benefit of this too, if it is more general not only snippet.

截屏2024-04-07 04 25 46
cxwx commented 2 months ago

how about codeium