checkers/spell: add add/remove word & next/prev error commands

So both spell-fu and flyspell users have a more consistent interface.
This commit is contained in:
Henrik Lissner 2020-09-02 13:58:27 -04:00
parent 5de263f6a4
commit 91c1e705e6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 66 additions and 9 deletions

View file

@ -390,12 +390,11 @@ directives. By default, this only recognizes C directives.")
;; implement dictionary keybinds
;; evil already defines 'z=' to `ispell-word' = correct word at point
(: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
)
(:when (featurep! :checkers spell)
:n "zq" #'+spell/add-word
:n "zw" #'+spell/remove-word
:m "[s" #'+spell/previous-error
:m "]s" #'+spell/next-error)
;; ported from vim-unimpaired
:n "] SPC" #'+evil/insert-newline-below