diff options
author | Jongwook Choi <wookayin@gmail.com> | 2024-02-01 15:34:35 -0500 |
---|---|---|
committer | Jongwook Choi <wookayin@gmail.com> | 2024-02-05 16:23:22 -0500 |
commit | a478bf936b2a648312704c02898eb7e5bfbf5692 (patch) | |
tree | 25b78296ba022f0d1cb4f9534a1291f5fed7666a /runtime/lua/vim/uri.lua | |
parent | 0e9a33572dc752463a0f5ad8a08a2c494d7a42e1 (diff) | |
download | rneovim-a478bf936b2a648312704c02898eb7e5bfbf5692.tar.gz rneovim-a478bf936b2a648312704c02898eb7e5bfbf5692.tar.bz2 rneovim-a478bf936b2a648312704c02898eb7e5bfbf5692.zip |
feat(treesitter): use 0-based indexing to show ranges in `:InspectTree`
Problem:
- `:InspectTree` was showing node ranges in 1-based indexing, i.e., in
vim cursor position (lnum, col). However, treesitter API adopts
0-based indexing to represent ranges (Range4). This can often be
confusing for developers and plugin authors when debugging code
written with treesiter APIs.
Solution:
- Change to 0-based indexing from 1-based indexing to show node ranges
in `:InspectTree`.
- Note: To make things not complicated, we do not provide an option or
keymap to configure which indexing mode to use.
Diffstat (limited to 'runtime/lua/vim/uri.lua')
0 files changed, 0 insertions, 0 deletions