nvim-lua / wishlist

A public catalogue of Lua plugins Neovim users would like to see exist
MIT License
235 stars 0 forks source link

A plugin to flash the cursor like "beaacon" #39

Open voyeg3r opened 2 years ago

voyeg3r commented 2 years ago

https://github.com/DanilaMihailov/beacon.nvim

I already have something like this:

-- https://vi.stackexchange.com/questions/31206
M.flash_cursorline = function()
    -- local cursorline_state = vim.opt.cursorline:get()
    vim.opt.cursorline = true
    vim.cmd([[hi CursorLine guifg=#FFFFFF guibg=#FF9509]])
    vim.fn.timer_start(200, function()
        vim.cmd([[hi CursorLine guifg=NONE guibg=NONE]])
        vim.opt.cursorline = false
    end)
end

But it does not appears cool like beacon

max397574 commented 2 years ago

you are looking for a plugin that already exists?

rodamaral commented 2 years ago

you are looking for a plugin that already exists?

From the README of this repo:

A public catalogue of Lua plugins Neovim users would like to see exist.

From beacon.nvim:

image

max397574 commented 2 years ago

oh didn't realize that

mcauley-penney commented 2 years ago

I think you're looking for specs.nvim

nkakouros commented 2 years ago

specs.nvim flashes the cursor on movement, not on demand (i.e. it does not have a where-is-my-cursor feature).

mcauley-penney commented 2 years ago

@nkakouros beacon.nvim, a new lua rewrite of beacon, has that feature