-
Notifications
You must be signed in to change notification settings - Fork 105
Figure out why "preview" in completeopt isn't working #78
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
Comments
A bit of logging inside float-preview.nvim shows that in
Note: no "info" in "completed_item". |
From https://microsoft.github.io/language-server-protocol/specification#textDocument_completion
|
Looking in the source of deoplete I can see it calling omnifunc (which in my case is The resolve stuff was added in: autozimu/LanguageClient-neovim#514 |
Filed this one over on the deoplete repo to see if they'd consider a feature request: Shougo/deoplete.nvim#1004 |
Switched to built-in LSP client in Neovim, so putting this one on ice. Will eventually get figured out there. |
Was just trying out: https://github.com/ncm2/float-preview.nvim
Which is supposed to put completion "info" in a floating window.
And deoplete supposedly passes along "info":
https://github.com/Shougo/deoplete.nvim/blob/bb2b16309b94695a3344c713282368b3329a2412/doc/deoplete.txt#L1274
So I guess LanguageClient-neovim isn't providing any? But then I see tickets like this one that suggest that it is/should:
autozimu/LanguageClient-neovim#740
So really no idea which link in the chain is failing at this point.
It's possible the TypeScript language server implementation I'm using isn't providing a "documentation" attribute: https://github.com/autozimu/LanguageClient-neovim/blob/12e65e7ce62ad769bd01a67063e82e4c01a839d6/src/types.rs#L547
Although, I believe it should be: https://github.com/theia-ide/typescript-language-server/blob/101dae4f7b598e9bafcaa8c316f21e57341e6350/server/src/completion.ts#L150
My current theory is that typescript-language-server will only return this info for a "completion resolve request", described here:
Supposedly LanguageClient-neovim does implement resolve requests... but maybe they're not happening.
Probably need to do some logging at various levels to find out what is going on here.
The text was updated successfully, but these errors were encountered: