mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
https://github.com/nvim-treesitter/nvim-treesitter/pull/1829 half fixed incremental selection for the vim parser, but other bugs still remain (infinite selection and skip selecting the root node). Problems can be replicated with these two files: (missing selecting the root node) ```vim set scrolloff=7 set scrolloff=7 ``` (infinite loop) ```vim set scrolloff=7 ``` The main problem is that we try to map the current selection range to a TS range, but the TS range of a node could include the EOL/EOL marks so it's impossible to know when to change the vim range to match the TS range, is more easy to transform the TS range to a vim range and do the comparison. |
||
|---|---|---|
| .. | ||
| caching.lua | ||
| configs.lua | ||
| fold.lua | ||
| health.lua | ||
| highlight.lua | ||
| incremental_selection.lua | ||
| indent.lua | ||
| info.lua | ||
| install.lua | ||
| locals.lua | ||
| parsers.lua | ||
| query.lua | ||
| query_predicates.lua | ||
| shell_command_selectors.lua | ||
| ts_utils.lua | ||
| tsrange.lua | ||
| utils.lua | ||