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

issue with Rust Analyzer signature in echo/minibuffer #3811

Closed
diocletiann opened this issue Nov 17, 2022 · 3 comments
Closed

issue with Rust Analyzer signature in echo/minibuffer #3811

diocletiann opened this issue Nov 17, 2022 · 3 comments

Comments

@diocletiann
Copy link

diocletiann commented Nov 17, 2022

    @chaoky https://github.com/scturtle/dotfiles/blob/f1e087e247876dbae20d56f944a1e96ad6f31e0b/doom_emacs/.doom.d/config.el#L74-L85

Originally posted by @scturtle in #1740 (comment)

I still see the first line with the package name instead of the sig on line 3. I tried the snippet above and got the following error:

Error processing message (wrong-type-argument hash-table-p (:kind "markdown" :value "
```rust
core::convert::AsRef
```

```rust
pub fn as_ref(&self) -> &T
```

---
@gagbo
Copy link
Contributor

gagbo commented Nov 17, 2022

That's because you are using lsp-use-plists and the snippet is hard-coded to only work with the older behaviour assuming lsp-use-plists doesn't exist and is nil. You'll have to find out how to modify the snippet to work for this value

@scturtle
Copy link
Contributor

@restfuladi Change (&hash "value") to (&plist :value).

@diocletiann
Copy link
Author

@restfuladi Change (&hash "value") to (&plist :value).

That did it, thank you!

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