Skip to content
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

ghost text for arguments #503

Closed
linde12 opened this issue Nov 9, 2021 · 2 comments
Closed

ghost text for arguments #503

linde12 opened this issue Nov 9, 2021 · 2 comments

Comments

@linde12
Copy link

linde12 commented Nov 9, 2021

Hi! This is more of a question than a bug, so im not sure this is the right place, but in the repo video you get ghost text for the arguments and i'm trying to achieve the same thing but with tsserver, however i can't get it to work. I get ghost text for function names and such, but not the arguments. Is this supported?

Thanks for your work!

@hrsh7th
Copy link
Owner

hrsh7th commented Nov 9, 2021

The ghost text content is determined by the LSP server (or custom source).

For example, gopls will show the function arguments as ghost text. So it is depending on the your server. I can't support it in nvim-cmp. Sorry.

スクリーンショット 2021-11-10 3 59 52

@hrsh7th hrsh7th closed this as completed Nov 9, 2021
@burgessa23
Copy link

According to neovim/nvim-lspconfig#1259 tsserver supports snippet completion now. Is there something that needs to be set in capabilities to get it working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants