SUSTech-data / wildfire.nvim

wildfire burns treesitter
274 stars 17 forks source link

Can't shrink selection manually #9

Open xzbdmw opened 6 months ago

xzbdmw commented 6 months ago

I have this custom keymap

keymap("x", "<bs>", function()
    vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("holo", true, false, true), "t", false)
end, opts)

which simply shrink one char at two side as a workaround for too aggressive in incremental selection but this plugin will ignore this changed selection range and after I type bs and type CR again it will expand further like I don't type bs, which behaves different of treesitter' orignal one.

xzbdmw commented 6 months ago

with this plugin:

https://github.com/SUSTech-data/wildfire.nvim/assets/97848247/f6ae64e3-7fb5-496c-ad3d-737f61391016

with original treesitter

https://github.com/SUSTech-data/wildfire.nvim/assets/97848247/d13b20f4-919e-4440-868f-d092a1ab3eff