Skip to content

Commit ae2437d

Browse files
ALameLlamaUzaaft
andauthored
fix(leap-nvim): Fix cursor invisible bug on nvim 0.10+ (#1430)
Co-authored-by: Uzair Aftab <[email protected]>
1 parent d396190 commit ae2437d

File tree

1 file changed

+0
-22
lines changed
  • lua/astrocommunity/motion/leap-nvim

1 file changed

+0
-22
lines changed

lua/astrocommunity/motion/leap-nvim/init.lua

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,6 @@ return {
55
{
66
"AstroNvim/astrocore",
77
opts = {
8-
autocmds = vim.fn.has "nvim-0.10" == 0
9-
and {
10-
leap_cursor = { -- https://github.com/ggandor/leap.nvim/issues/70#issuecomment-1521177534
11-
{
12-
event = "User",
13-
pattern = "LeapEnter",
14-
callback = function()
15-
vim.cmd.hi("Cursor", "blend=100")
16-
vim.opt.guicursor:append { "a:Cursor/lCursor" }
17-
end,
18-
},
19-
{
20-
event = "User",
21-
pattern = "LeapLeave",
22-
callback = function()
23-
vim.cmd.hi("Cursor", "blend=0")
24-
vim.opt.guicursor:remove { "a:Cursor/lCursor" }
25-
end,
26-
},
27-
},
28-
}
29-
or {},
308
mappings = {
319
n = {
3210
["s"] = { "<Plug>(leap-forward)", desc = "Leap forward" },

0 commit comments

Comments
 (0)