Refactor company integration
This commit is contained in:
parent
c7f2f10b18
commit
d073d61531
14 changed files with 45 additions and 27 deletions
|
@ -17,13 +17,14 @@
|
|||
:config (add-hook! rust-mode 'flycheck-mode))
|
||||
|
||||
(use-package racer
|
||||
:if (! (file-exists-p "/usr/local/bin/racer"))
|
||||
:config
|
||||
(bind! :m "gd" 'racer-find-definition)
|
||||
(setq racer-cmd "/usr/local/bin/racer"
|
||||
racer-rust-src-path "~/Dropbox/lib/rust/src/")
|
||||
(bind! :m "gd" 'racer-find-definition)
|
||||
|
||||
(add-hook! rust-mode '(racer-mode eldoc-mode flycheck-rust-setup))
|
||||
(add-company-backend! rust-mode (racer))))
|
||||
(define-company-backend! rust-mode (racer))))
|
||||
|
||||
(provide 'module-rust)
|
||||
;;; module-rust.el ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue