maralla / completor.vim

Async completion framework made ease.
MIT License
1.29k stars 63 forks source link

[Question] Possible to insert entire call signature for Rust completions? #196

Open hagsteel opened 6 years ago

hagsteel commented 6 years ago

Is it possible to have completor output the entire call signature? Especially useful when implementing traits in Rust.

Given a trait:

trait Decodable {
    fn decode(buffer: &[u8]) -> Result<Self>;
}

When I impl the trait I get suggestions for decode:

 decode                      fn decode(buffer: &[u8]) -> Result<Self>

So my question is: rather than outputing decode when I select decode from the completor suggestions, is it possible to have it output the full signature:

fn decode(buffer: &[u8]) -> Result<Self>

(as opposed to just)

decode

(Love completor!)