lang/rust: fix documentation lookup handler #1374

This commit is contained in:
Henrik Lissner 2019-04-30 20:19:13 -04:00
parent 6bd6c1623b
commit f20f477a44
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 11 additions and 3 deletions

View file

@ -12,3 +12,11 @@
"TODO"
(let ((default-directory (+rust-cargo-project-p)))
(compile command)))
;;;###autoload
(defun +rust-racer-lookup-documentation (identifier)
"A `+lookup/documentation' handler for Rust + Racer."
(let ((buf (racer--describe identifier)))
(when buf
(pop-to-buffer buf)
t)))