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

feat(treesitter): opt-out selection of the smallest node with flash.treesitter() by specifying autojump = false

Open atusy opened this issue 1 year ago • 0 comments

current implementation of require("flash").treesitter() automatically selects the smallest node. However, this may cause unintentional scroll of the buffer like below.

2023-11-22 12-06-17 mkv

This PR adds a functionality to opt-out the current behavior by respecting autojump configuration on require("flash").treesitter().

atusy avatar Nov 22 '23 03:11 atusy