We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
remap
1 parent e770902 commit 4a51f82Copy full SHA for 4a51f82
tests/spec/keymap_spec.fnl
@@ -59,7 +59,13 @@
59
#(let [modes [:n :t :o]]
60
(noremap! modes :lhs :rhs)
61
(each [_ mode (ipairs modes)]
62
- (assert.is.same :rhs (get-rhs mode :lhs)))))))
+ (assert.is.same :rhs (get-rhs mode :lhs)))))
63
+ (it "maps recursively with `remap` key in `extra-opts`"
64
+ #(let [modes [:n :o :x]]
65
+ (noremap! modes [:remap] :lhs :rhs)
66
+ (each [_ m (ipairs modes)]
67
+ (let [{: noremap} (get-mapargs m :lhs)]
68
+ (assert.is.same 0 noremap)))))))
69
(describe :map!
70
(fn []
71
(it "maps lhs to rhs with `noremap` set to `false` represented by `1`"
0 commit comments