smartparens
smartparens copied to clipboard
sp-previous-sexp behaves different depending on evil state
sp-previous-sexp
behaves differently in normal and insert states, depending on the layout of the same form.
In evil insert state, if you position the point on the closing paren of the following 2 examples, and use sp-previous-sexp
to visit each string, everything will work as expected. However if you do the same in evil normal state, only the first example will work. The second one will stop on the "b"
string and refuse to go any further.
("a" "b" "c")
("a"
"b"
"c")
I use this package to kinda help out with this: https://github.com/willghatch/emacs-on-parens