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

Case insensitivitiy can't be disabled

Open maxigaz opened this issue 3 years ago • 6 comments

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