feat(users/Profpatsch): moving around via the tree-sitter parse tree

Has a little setup to get the cursor position and map it onto a tree
sitter node. The current node is saved in a cursor variable, and a
highlight overlay marks the range of the current node in the buffer.

Change-Id: I0af56115f928732e993fbefe978a246ca7c757ee
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2258
Reviewed-by: lukegb <lukegb@tvl.fyi>
Reviewed-by: tazjin <mail@tazj.in>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
This commit is contained in:
Profpatsch 2020-12-19 19:22:55 +01:00
parent c9b985e7bc
commit 806c281b34
6 changed files with 154 additions and 0 deletions

View file

@ -0,0 +1,13 @@
(4 + 5 + 5)
def foo(a, b, c)
def bar(a, b):
4
4
4
[1, 4, 5, 10]
def foo():
pass