fannheyward / coc-rust-analyzer

rust-analyzer extension for coc.nvim
MIT License
1.13k stars 39 forks source link

Missing "rust-analyzer.completion.snippet" config option. #891

Closed iago-lito closed 2 years ago

iago-lito commented 2 years ago

I like this new feature from rust-analyzer: https://github.com/rust-analyzer/rust-analyzer/pull/10458 (also described here). But it seems I cannot enjoy it for now because there is no rust-analyzer.completion.snippet in the coc extension. Is this something easy to add? Or is it more engaged?

fannheyward commented 2 years ago

What's your coc-rust-analyzer version? You can get it from :CocList extensions.

Try :CocUpdate.

iago-lito commented 2 years ago

I have coc-rust-analyzer 0.54.0 according to :CocList extensions, and the situation is the same after :PlugUpgrade, :PlugUpdate then :CocUpdate. I'm also still getting this

"rust-analyzer.completion.snippet": {  Property rust-analyzer.completion.snippet is not allowed.

lint when editing my cocsettings.json :\

Does the following help?

vim version: NVIM v0.5.1
node version: v16.11.1
coc.nvim version: 0.0.80-03c9add7cd
coc.nvim directory: /opt/vim.plugged/coc.nvim
term: xterm-256color
platform: linux
fannheyward commented 2 years ago

Can't reproduce this, the rust-analyzer.completion.snippet is added in 0.53.0 release, and can be set in coc-settings.json.

截屏2021-10-20 下午7 55 11
iago-lito commented 2 years ago

Uh-oh. That is weird. I'll try reinstalling the extension..

iago-lito commented 2 years ago

Wops, okay, this was just a typo: completion.snippet should be completion.snippetsssSS with an S at the end. I think the reason is that I didn't get the autocompletion on this option's name when I first tried to enjoy the option.. maybe before 0.53 was out. Sorry for bothering ;)