hop.nvim icon indicating copy to clipboard operation
hop.nvim copied to clipboard

Case insensitivitiy can't be disabled

Open maxigaz opened this issue 4 years ago • 6 comments
trafficstars

When I try setting the option case_insensitive to false, it doesn't seem to affect whether upper or lowercase characters are matched or not.

Here's an elaborate example:

  1. Run :lua require'hop'.setup{ case_insensitive = 'false' } or load the minimal init.lua below
  2. Open a new buffer
  3. Write asdfgASDFG
  4. Move the cursor to the first character
  5. Run :HopChar1
  6. Press d

The result is that D becomes hinted and I can jump on it. The expected behaviour would be that the cursor immediately jumps to d, because that would be the only match.

I can reproduce this in Neovim v0.5.0-dev+1459-g384f9870f with a minimal init.lua:

vim.cmd([[let $PLUGIN_DIRECTORY = '~/.local/share/nvim/plugtest']])
vim.cmd([[packadd hop.nvim]])

require'hop'.setup {
  case_insensitive = 'false',
}

maxigaz avatar Jun 30 '21 12:06 maxigaz

case_insentitive = false whithout the single quote works for me.

ovidius72 avatar Aug 30 '21 08:08 ovidius72

case_insentitive = false whithout the single quote works for me.

I've just tried your suggestion. It doesn't seem to make any difference for me.

maxigaz avatar Aug 30 '21 10:08 maxigaz

Do you still have that issue @maxigaz? A bunch of changes were merged lately regarding case sensitivity.

hadronized avatar Nov 17 '21 15:11 hadronized

Yes, I can still reproduce it in Neovim v0.5.1.

maxigaz avatar Nov 17 '21 16:11 maxigaz

I probably need to have a look at it again, especially if you still reproduce @maxigaz.

hadronized avatar Jun 21 '22 09:06 hadronized

case_insentitive = false whithout the single quote works for me.

This also works for me :smiley:

jsr-p avatar Feb 18 '23 16:02 jsr-p