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

Cannot see autocomplete #12

Closed
MaelitoP opened this issue Apr 8, 2024 · 2 comments
Closed

Cannot see autocomplete #12

MaelitoP opened this issue Apr 8, 2024 · 2 comments

Comments

@MaelitoP
Copy link

MaelitoP commented Apr 8, 2024

Hello @pwnwriter,

I'm playing with your repo to discover nvim. But I don't understand why I cannot see any autocomplete for anything. Here is an example in rust.

I tried to follow keys defined in lua/core/mappings.lua and in lua/plugins/cmp.lua, but it does nothing.
When I start typing use rand:: nothing appears. It's the same in INSERT and NORMAL mode and with the CTRL+SPACE bind either.

Do you have any idea of what I'm doing wrong ?

image

Thank you for your help

@MaelitoP MaelitoP changed the title Not autocomplete in rust Cannot see autocomplete in rust Apr 8, 2024
@MaelitoP MaelitoP changed the title Cannot see autocomplete in rust Cannot see autocomplete Apr 8, 2024
@pwnwriter
Copy link
Owner

Hey, thanks for the issue

Auto completion fairly works on my machine.

A few things to notice and try debugging,

  • /lua/plugins/servers.lua has some configuration for a list of lsp severs I use. For rust, it uses rustup to invoke the rust-analyzer .
  • Check if rustup is installed or not if not install and then install rust-analyzer using rustup itself.
    rustup component add rust-analyzer I'm using stable rust . You should be able to change between nightly beta or stable from the servers.lua file.

@MaelitoP
Copy link
Author

Hello !

Thank you so much for your help, it works better when rust-analyser is installed \o/

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

2 participants