From 81d3fe4a82931d4dff899ba6724411bbec4493d0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 25 May 2018 11:54:49 +0200 Subject: [PATCH] config/default: fix missing +ivy-do-action! error when ivy module is disabled --- modules/config/default/+bindings.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/config/default/+bindings.el b/modules/config/default/+bindings.el index 9b2ef077d..b4033b14a 100644 --- a/modules/config/default/+bindings.el +++ b/modules/config/default/+bindings.el @@ -393,11 +393,12 @@ [escape] #'company-search-abort)) ;; counsel - (:after counsel - (:map counsel-ag-map - [backtab] #'+ivy/wgrep-occur ; search/replace on results - "C-SPC" #'ivy-call-and-recenter ; preview - "M-RET" (+ivy-do-action! #'+ivy-git-grep-other-window-action))) + (:when (featurep! :completion ivy) + (:after counsel + (:map counsel-ag-map + [backtab] #'+ivy/wgrep-occur ; search/replace on results + "C-SPC" #'ivy-call-and-recenter ; preview + "M-RET" (+ivy-do-action! #'+ivy-git-grep-other-window-action)))) ;; easymotion :m "gs" #'+default/easymotion ; lazy-load `evil-easymotion'