feat(emacs-tree-sitter-move): load more than one tree sitter grammar

Change-Id: I43b8ddb180c056f1b8c650ccc915ec41bae83960
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2262
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
This commit is contained in:
Profpatsch 2020-12-19 21:39:17 +01:00
parent 3279786cd2
commit fdb47be7d7
2 changed files with 23 additions and 8 deletions

View file

@ -15,6 +15,7 @@
(defun tree-sitter-move--setup ()
;; TODO
(progn
;; TODO: if tree-sitter-mode fails to load, display a better error
(tree-sitter-mode t)
(setq tree-sitter-move--cursor (tsc-root-node tree-sitter-tree))
(add-variable-watcher