blob: 51797de50aa249b1b5003d9b93a6b766bb6a7f21 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
hook global BufSetOption filetype=(?:javascript|typescript|jsx|tsx) %{
map global refactor o ': js-test-toggle-it-state<ret>' -docstring 'Toggle it/it.only'
}
define-command js-test-toggle-it-state %{
try %{
execute-keys 'Z<a-;><a-i>imxsit\(<ret>cit.only(<esc>z'
} catch %{
execute-keys 'Z<a-;><a-i>imxsit\.only\(<ret>cit(<esc>z'
}
}
|