DanilaMihailov / beacon.nvim

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

Fix the mappings for count search #23

Open voyeg3r opened 2 years ago

voyeg3r commented 2 years ago

When we set these mappings:

nmap n n:Beacon<cr>
nmap N N:Beacon<cr>
nmap * *:Beacon<cr>
nmap # #:Beacon<cr>

We lose the count search like: [3/15]

voyeg3r commented 2 years ago

I also posted on https://neovim.discourse.group/ a question and an initial solution for the problem, but using vimscript, there I asked how to translate the proposed solution to lua:

https://neovim.discourse.group/t/how-to-append-mappings-in-lua/2118