bug: flash.treesitter preselects "a" label even if the user has defined custom labels #9
Closed
3 tasks done
Labels
bug
Something isn't working
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0-dev-541+g96b94f8d7
Operating system/version
Pop!_OS 22.04 LTS
Describe the bug
This line basically assumes that
a
is the first label:https://github.com/folke/flash.nvim/blob/455ba61cd0e48b9e3a28e9e1fa1a3364d57e7538/lua/flash/plugins/treesitter.lua#LL66C30-L66C31
Steps To Reproduce
config.modes.treesitter.labels = "fdsajkl"
vS
and see the labels and selectionExpected Behavior
The inner most treesitter node should be preselected (now labelled by
f
). Instead the node labelleda
is selected.Repro
The text was updated successfully, but these errors were encountered: