ggandor / lightspeed.nvim

deprecated in favor of leap.nvim
MIT License
1.56k stars 28 forks source link

ft follow lightspeed's case sensitivity setting, but i'd rather they didn't #147

Open emmanueltouzery opened 2 years ago

emmanueltouzery commented 2 years ago

This issue was already mentioned in #104. It seems it was agreed that lightspeed should not change ft to be case insensitive no matter what settings are set for lightspeed. But it seems lightspeed still changes this.

I have the latest version of lightspeed, on nvim 0.7.0, with the following config:

use {'ggandor/lightspeed.nvim', Commit='c5b93fc1d76a708cb698417326e04f4786a38d90', config = function()
  require'lightspeed'.setup {
    ignore_case = true,
  }
end}

and for instance, with this text:

import { postForm } from 'utils/fetch';

If i put the cursor at the beginning of the line with ignore_case=true, then ctf will stop at the F of postForm. While if ignore_case=false is set then it will stop at the f of 'from'.

I'd really rather that tf behave in the "normal" case sensitive manner, no matter what is the setting for lightspeed.