Key mapping: Does sequence of commands in key map work? #13023
Answered
by
the-mikedavis
zummenix
asked this question in
Troubleshooting
-
I've defined the following keymap in my config: [keys.normal."space"]
i = [
":toggle-option inline-diagnostics.other-lines hint disable",
":toggle-option inline-diagnostics.cursor-line hint disable"
] I expect that |
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
Mar 4, 2025
Replies: 1 comment 1 reply
-
Sequences of commands generally work like you would expect here. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zummenix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sequences of commands generally work like you would expect here.
:toggle-option
(and similarly:set-option
) do not work like this however because the configuration update is kicked off by the command asynchronously. Ideally:toggle
and:set
would block while the configuration is updated. (I believe this would be covered by #8853)