@@ -98,7 +98,7 @@ config (overrides `s`, `S` and `gs` in all modes):
98
98
` lua require('leap').create_default_mappings() ` (init.vim)
99
99
100
100
<details >
101
- <summary >Alternative key mappings</summary >
101
+ <summary >Alternative key mappings (bidirectional jump, etc.) </summary >
102
102
103
103
Calling ` require('leap').create_default_mappings() ` is equivalent to:
104
104
@@ -153,35 +153,6 @@ require('leap.user').set_repeat_keys('<enter>', '<backspace>')
153
153
154
154
</details >
155
155
156
- <details >
157
- <summary >Workaround for the duplicate cursor bug when autojumping</summary >
158
-
159
- For Neovim versions < 0.10 (https://github.com/neovim/neovim/issues/20793 ):
160
-
161
- ``` lua
162
- -- Hide the (real) cursor when leaping, and restore it afterwards.
163
- vim .api .nvim_create_autocmd (' User' , { pattern = ' LeapEnter' ,
164
- callback = function ()
165
- vim .cmd .hi (' Cursor' , ' blend=100' )
166
- vim .opt .guicursor :append { ' a:Cursor/lCursor' }
167
- end ,
168
- }
169
- )
170
- vim .api .nvim_create_autocmd (' User' , { pattern = ' LeapLeave' ,
171
- callback = function ()
172
- vim .cmd .hi (' Cursor' , ' blend=0' )
173
- vim .opt .guicursor :remove { ' a:Cursor/lCursor' }
174
- end ,
175
- }
176
- )
177
- ```
178
-
179
- Caveat: If you experience any problems after using the above snippet, check
180
- [ #70 ] ( https://github.com/ggandor/leap.nvim/issues/70#issuecomment-1521177534 )
181
- and [ #143 ] ( https://github.com/ggandor/leap.nvim/pull/143 ) to tweak it.
182
-
183
- </details >
184
-
185
156
<details >
186
157
<summary >Lazy loading</summary >
187
158
@@ -332,7 +303,8 @@ for _, tobj in ipairs(default_text_objects) do
332
303
end
333
304
```
334
305
335
- A very handy custom mapping - remote line(s), with optional ` count ` (` y2aa ` ):
306
+ A very handy custom mapping - remote line(s), with optional ` count `
307
+ (` y2aa{leap} ` ):
336
308
337
309
``` lua
338
310
vim .keymap .set ({' x' , ' o' }, ' aa' , function ()
0 commit comments