I got the following error when I try to leap from a normal buffer to another using <Plug>(leap-from-window) while Snacks.explorer() is not closed
E5108: Error executing lua: ...re/nvim/site/pack/deps/opt/leap.nvim/lua/leap/search.lua:168: attempt to index local '_let_23_' (a nil value)
stack traceback:
...re/nvim/site/pack/deps/opt/leap.nvim/lua/leap/search.lua:168: in function 'rank'
...re/nvim/site/pack/deps/opt/leap.nvim/lua/leap/search.lua:217: in function 'get-targets'
...hare/nvim/site/pack/deps/opt/leap.nvim/lua/leap/main.lua:696: in function 'get_targets'
...hare/nvim/site/pack/deps/opt/leap.nvim/lua/leap/main.lua:946: in function 'leap'
.../share/nvim/site/pack/deps/opt/leap.nvim/plugin/init.lua:16: in function <.../share/nvim/site/pack/deps/opt/leap.nvim/plugin/init.lua:15>
Not entire sure but it seems the double cursor - one in the normal buffer, another in the Snacks.explorer() (tracking the file) causes the error. When the cursor is in the Snacks.explorer(), <Plug>(leap-from-window) can be executed successfully.
A potential solution could be that we expose filetype or buftype that <Plug>(leap-from-window) can ignore. Thanks in advance!
I got the following error when I try to leap from a normal buffer to another using
<Plug>(leap-from-window)while Snacks.explorer() is not closedNot entire sure but it seems the double cursor - one in the normal buffer, another in the Snacks.explorer() (tracking the file) causes the error. When the cursor is in the Snacks.explorer(),
<Plug>(leap-from-window)can be executed successfully.A potential solution could be that we expose filetype or buftype that
<Plug>(leap-from-window)can ignore. Thanks in advance!