Open chaudry-786 opened 1 year ago
This doesn't happen for me on Ubuntu 22.04 with Neovim v0.8.0-1210-gd367ed9b2 (Release) and LuaJIT 2.1.0-beta3 . Is there something unique about your setup or file that you're editing that might suggest the cause of the issue?
:HopWordAC
and :HopWordBC
also have the same error when used on an empty line.
NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3
NVIM v0.7.2 Build type: Release LuaJIT 2.1.0-beta3
@sabah1994, are you using the hop.hint_lines
API?
@mystilleef I dont't think so.
This is my config https://github.com/sabah1994/dotfiles/blob/d758306f2b02436ad5b48d6f8957e34b5e9a6405/nvim/lua/plug-config/hop.lua#L3
@samjwill @mystilleef any update on this please?
@samjwill @mystilleef any update on this please?
Unfortunately, I'm having the same issue.
I have the same issue with HopChar2AC and HopChar2BC. It seems like the error occurs when I jump from an empty line and Hop suggests multiple destinations. When there is only one matching destination no error occurs.
Iām having a look at that tomorrow. That bug has been crawling around in several part of the API, and a refactor of the window position / jump is probably required as more and more features were added in the past months.
Currently having the same issue, anyone been able to find a workaround?
NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3 Compiled by brew@Ventura-arm64.local
Currently having the same issue, anyone been able to find a workaround?
NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3 Compiled by brew@Ventura-arm64.local
As a workaround, when the cursor is on a blank line, I let it jump to the next non-blank line, for example:
local function hop_w()
local opts = { direction = hint.HintDirection.AFTER_CURSOR }
vim.cmd('.g/^$/normal )')
hop.hint_words(opts)
end
Not a nice way, and it won't work all the time, but it is enough for now...
@phaazon any update on this?
Same issue on hint_char1 and hint_word
NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3
Currently having the same issue, anyone been able to find a workaround? NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3 Compiled by brew@Ventura-arm64.local
As a workaround, when the cursor is on a blank line, I let it jump to the next non-blank line, for example:
local function hop_w() local opts = { direction = hint.HintDirection.AFTER_CURSOR } vim.cmd('.g/^$/normal )') hop.hint_words(opts) end
Not a nice way, and it won't work all the time, but it is enough for now...
Still will break though if you on the last line and it is empty or file consists of an empty lines š But for now it's the only solution šļø
any progress on this?
This doesn't happen for me on Ubuntu 22.04 with Neovim v0.8.0-1210-gd367ed9b2 (Release) and LuaJIT 2.1.0-beta3 . Is there something unique about your setup or file that you're editing that might suggest the cause of the issue?
Not sure about Ubuntu, but having the same problem both in Mac Ventura and W10.
Currently having the same issue, anyone been able to find a workaround? NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3 Compiled by brew@Ventura-arm64.local
As a workaround, when the cursor is on a blank line, I let it jump to the next non-blank line, for example:
local function hop_w() local opts = { direction = hint.HintDirection.AFTER_CURSOR } vim.cmd('.g/^$/normal )') hop.hint_words(opts) end
Not a nice way, and it won't work all the time, but it is enough for now...
Still will break though if you on the last line and it is empty or file consists of an empty lines disappointed But for now it's the only solution point_left
A better work around is to use the following branch instead of the workaround above: https://github.com/aznhe21/hop.nvim/tree/fix-some-bugs
Hopefully it gets merged soon...
Plug 'aznhe21/hop.nvim', { 'branch': 'fix-some-bugs'}
Will this fix ever get merged?
Will this fix ever get merged?
@BartSte can't say for sure, but you might try directly using the branch that fixes it in your config
Currently having the same issue, anyone been able to find a workaround? NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3 Compiled by brew@Ventura-arm64.local
As a workaround, when the cursor is on a blank line, I let it jump to the next non-blank line, for example:
local function hop_w() local opts = { direction = hint.HintDirection.AFTER_CURSOR } vim.cmd('.g/^$/normal )') hop.hint_words(opts) end
Not a nice way, and it won't work all the time, but it is enough for now...
Still will break though if you on the last line and it is empty or file consists of an empty lines disappointed But for now it's the only solution point_left
A better work around is to use the following branch instead of the workaround above: https://github.com/aznhe21/hop.nvim/tree/fix-some-bugs
Hopefully it gets merged soon...
Yes I know ;) @FelipeLema
Hi, If I try to navigate to another line "HopLineAC" or "HopLineBC" from an empty line I get following error.