nvim-treesitter/lua
Santos Gallegos e4c56e691a
Use vim-range style (1-index based) when possible (#1841)
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.
2021-09-24 17:46:44 -05:00
..
nvim-treesitter Use vim-range style (1-index based) when possible (#1841) 2021-09-24 17:46:44 -05:00
nvim-treesitter.lua Use stylua for autoformat code (#1480) 2021-07-04 21:12:17 +00:00