beacon.nvim icon indicating copy to clipboard operation
beacon.nvim copied to clipboard

set cursor_events to empty to disable highlighting jumps inside windows

Open csessh opened this issue 4 months ago • 0 comments

closes #32

I think this may have been the original intention based on the wordings in beacon.nvim vimdoc.

Disable highlighting jumps inside window
>lua
  require('beacon').setup({
    cursor_events = {} -- set empty
  })
<

I quickly tested it out with

return {
    dev = true,
    dir = "~/Documents/nvim-plugins/beacon.nvim",
    opts = {
        enabled = true,
        speed = 2,
        width = 40,
        winblend = 70,
        fps = 60,
        min_jump = 20,
        cursor_events = {}, <---only thing that changed
        window_events = { "WinEnter", "FocusGained" },
        highlight = { bg = "white", ctermbg = 15 },
    },
}
  • [ x] jumping within a buffer = no highlight
  • [ x] jumping across buffers = highlight as usual

csessh avatar Oct 08 '24 08:10 csessh