]> git.eshelyaron.com Git - emacs.git/commit
Minor improvement for tree-sitter explorer
authorYuan Fu <casouri@gmail.com>
Mon, 9 Jan 2023 04:30:07 +0000 (20:30 -0800)
committerYuan Fu <casouri@gmail.com>
Mon, 9 Jan 2023 05:22:28 +0000 (21:22 -0800)
commit1f8ad353d9fbf8fb7706e91dda336dfd650b57cc
treeb8f7293d9b72cbbf5b938a12b4dac2ec3fe134fa
parentef87c75566018b546e56f64f66f665ebfd8da305
Minor improvement for tree-sitter explorer

If you open an empty python buffer and type

1 + 2
a
b

Currently the explorer only displays the top-level node at point, ie,
only 1 + 2, only a, or only b. That's kind of awkward, so if the
buffer is small, show the entire parse tree.

* lisp/treesit.el (treesit--explorer-refresh): See above.
lisp/treesit.el