From f6bae75bff474633ba28271445dbedec98e57e40 Mon Sep 17 00:00:00 2001 From: Jakub Darul Date: Mon, 24 Aug 2020 20:25:49 +0200 Subject: [PATCH] Disable spell-fu keybinding if +flyspell enabled --- modules/editor/evil/config.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/editor/evil/config.el b/modules/editor/evil/config.el index d73bd1843..2f9f7f99d 100644 --- a/modules/editor/evil/config.el +++ b/modules/editor/evil/config.el @@ -382,10 +382,12 @@ directives. By default, this only recognizes C directives.") ;; implement dictionary keybinds ;; evil already defines 'z=' to `ispell-word' = correct word at point - :n "zq" #'spell-fu-word-add - :n "zw" #'spell-fu-word-remove - :m "[s" #'spell-fu-goto-previous-error - :m "]s" #'spell-fu-goto-next-error + (:when (not (featurep! :checkers spell +flyspell)) + :n "zq" #'spell-fu-word-add + :n "zw" #'spell-fu-word-remove + :m "[s" #'spell-fu-goto-previous-error + :m "]s" #'spell-fu-goto-next-error + ) ;; ported from vim-unimpaired :n "] SPC" #'+evil/insert-newline-below