lang/rust: fix documentation lookup handler #1374
This commit is contained in:
parent
6bd6c1623b
commit
f20f477a44
2 changed files with 11 additions and 3 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue