Disable spell-fu keybinding if +flyspell enabled

This commit is contained in:
Jakub Darul 2020-08-24 20:25:49 +02:00
parent e3750dbf66
commit f6bae75bff

View file

@ -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