Random error while trying to hop
bigardone opened this issue · 0 comments
bigardone commented
Describe the bug
When I have two vertical windows and I try to hop from the one of them, I randomly get the following error.
Error executing Lua callback: ...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:110: attempt to get length of a nil value
stack traceback:
...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:110: in function 'set_unmatched_lines'
...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:164: in function 'apply_dimming'
...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:373: in function 'hint_with_callback'
...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:324: in function 'hint_with'
...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:471: in function <...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:464>
This happens after upgrading to the lastest version.
To Reproduce
Steps to reproduce the behavior:
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- install hop.nvim
local plugins = {
{ "smoka7/hop.nvim", opts = {} },
}
require("lazy").setup(plugins,{})
--- How You use hop...
Expected behavior
Jump markers should appear without any error
Screenshots
Screen.Recording.2023-08-29.at.08.26.37.mov
version (please complete the following information):
- Nvim version: NVIM v0.10.0-dev-1773+g55f6a1cab-Homebrew
- hop.nvim version: v2.2.6