pwnvim icon indicating copy to clipboard operation
pwnvim copied to clipboard

Cannot see autocomplete

Open MaelitoP opened this issue 1 year ago • 1 comments
trafficstars

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 avatar Apr 08 '24 15:04 MaelitoP

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.

pwnwriter avatar Apr 09 '24 04:04 pwnwriter

Hello !

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

MaelitoP avatar May 21 '24 17:05 MaelitoP