DanilaMihailov / beacon.nvim

Whenever cursor jumps some distance or moves between windows, it will flash so you can see where it is
339 stars 9 forks source link

Setting cursor_events = {} raised exception #32

Open csessh opened 1 month ago

csessh commented 1 month ago

I was hoping to disable highlighting jumps inside windows Following what's documented in :help beacon, I have the following config snipet:

    config = function()
        require("beacon").setup {
            enabled = true,
            cursor_events = {}, 
        }
    end,

It raises the following error:

Failed to run `config` for beacon.nvim                                                                                                                                        

...csessh/.local/share/nvim/lazy/beacon.nvim/lua/beacon.lua:155: Required: 'event'                                                                                            

# stacktrace:                                                                                                                                                                 
  - /beacon.nvim/lua/beacon.lua:155 _in_ **setup**                                                                                                                            
  - ~/.config/nvim/lua/plugins/beacon.lua:4 _in_ **config**                                                                                                                   
  - nvim/.config/nvim/init.lua:17                      

:help beacon doc might be outdated? What would be the correct way to achieve this?