Yuan Fu
Yuan Fu
Yeah, just download the grammar file (libtree-sitter-xxx), and create a parser in the buffer `(treesit-parser-create 'xxx)` and you're good to go.
Thanks. Pardon my ignorance, but I wonder how could you traverse the parse tree backwards with a cursor? That would be useful for, eg, searching for a `function_definition` node before...
Thanks, but how about traversing backwards in the tree with a cursor? That would be useful for, eg, searching for a `function_definition` node before the cursor.
Ok, I looked at the source of `ts_node_prev_sibling`, it seems the only way to traverse backwards is to traverse forwards and stop at the node just before the starting node....
Hey sorry for the late reply. Do you want to display the undo tree in a childframe, or display the undo tree vertically?
Shouldn't be hard to make it configurable. Let me see.
Ok, now you should be able to configure how to display the vundo buffer by adding an entry to`display-buffer-alist`. You can use `display-buffer-in-child-frame`.
Hey sorry, didn't see you second message. You should use something like ```elisp (add-to-list 'display-buffer-alist `(" *vundo tree*" display-buffer-in-child-frame (child-frame-parameters . ((undecorated . t) (menu-bar-lines . 0) (internal-border-width . 1)...
Thanks for your kind words :) Try this: ``` (defun vundo-live-diff-post-command () "Post command hook function for live diffing." (when (and vundo-diff--marked-node (not (memq this-command '(vundo-quit vundo-confirm)))) (vundo-diff))) (define-minor-mode vundo-live-diff-mode...
You need to use a monospace font for both ascii and unicode. Ascii is easier since most programming font are monospace; for unicode, you need to find a monospace font...