mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Reduce def-package magic; explicitly use :when property
This commit is contained in:
@ -22,14 +22,16 @@
|
||||
racer-rust-src-path (expand-file-name "rust/src/" +rust-cache-dir))
|
||||
|
||||
;; TODO Unit test keybinds
|
||||
(set! :company-backend 'rust-mode '(company-racer))
|
||||
(map! :map rust-mode-map :m "gd" 'racer-find-definition))
|
||||
|
||||
|
||||
(def-package! company-racer
|
||||
:after racer)
|
||||
:when (featurep! :completion company)
|
||||
:after racer
|
||||
:config (set! :company-backend 'rust-mode '(company-racer)))
|
||||
|
||||
|
||||
(def-package! flycheck-rust
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:after rust-mode)
|
||||
|
||||
|
@ -6,5 +6,6 @@
|
||||
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(package! flycheck-rust))
|
||||
|
||||
(when (featurep! :completion company)
|
||||
(package! company-racer))
|
||||
|
Reference in New Issue
Block a user