completion/ivy: make counsel-compile projectile-aware

This commit is contained in:
Henrik Lissner 2019-10-17 01:45:04 -04:00
parent 1826421cba
commit d5d85d1b03
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -238,6 +238,10 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
:config
(set-popup-rule! "^\\*ivy-occur" :size 0.35 :ttl 0 :quit nil)
;; Make `counsel-compile' projectile-aware (if you prefer it over
;; `+ivy/compile' and `+ivy/project-compile')
(add-to-list 'counsel-compile-root-functions #'projectile-project-root)
(after! savehist
;; Persist `counsel-compile' history
(add-to-list 'savehist-additional-variables 'counsel-compile-history))