Skip to content

Commit 2d30f30

Browse files
committed
docs(readme): tweaks
1 parent 1a10dd0 commit 2d30f30

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

README.md

+3-31
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ config (overrides `s`, `S` and `gs` in all modes):
9898
`lua require('leap').create_default_mappings()` (init.vim)
9999

100100
<details>
101-
<summary>Alternative key mappings</summary>
101+
<summary>Alternative key mappings (bidirectional jump, etc.)</summary>
102102

103103
Calling `require('leap').create_default_mappings()` is equivalent to:
104104

@@ -153,35 +153,6 @@ require('leap.user').set_repeat_keys('<enter>', '<backspace>')
153153

154154
</details>
155155

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-
185156
<details>
186157
<summary>Lazy loading</summary>
187158

@@ -332,7 +303,8 @@ for _, tobj in ipairs(default_text_objects) do
332303
end
333304
```
334305

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}`):
336308

337309
```lua
338310
vim.keymap.set({'x', 'o'}, 'aa', function ()

0 commit comments

Comments
 (0)