Wilfred / tree-sitter-elisp

tree-sitter grammar for emacs lisp
https://www.npmjs.com/package/tree-sitter-elisp
MIT License
66 stars 7 forks source link

How to install? #2

Open LazerJesus opened 1 year ago

LazerJesus commented 1 year ago

I got this far but i still cant run it.

(tree-sitter-hl-mode) results in: tree-sitter--setup: No language registered for major mode ‘emacs-lisp-mode’

(use-package tree-sitter
  :straight t
  :hook ((emacs-lisp-mode . tree-sitter-mode)
         (emacs-lisp-mode . tree-sitter-hl-mode)))

(use-package tree-sitter-langs
  :straight t
  :after tree-sitter)

(use-package tree-sitter-elisp
  :straight (tree-sitter-elisp
             :host github
             :repo "Wilfred/tree-sitter-elisp"
             :files ("*.el" "*.c" "*.so" "*.dylib" "*.dll"))
  :after (tree-sitter tree-sitter-langs)
  :config
  (add-to-list 'tree-sitter-major-mode-language-alist '(emacs-lisp-mode . emacs-lisp))
  (add-hook 'emacs-lisp-mode-hook #'tree-sitter-mode)
  (add-hook 'emacs-lisp-mode-hook #'tree-sitter-hl-mode))
nvimtor commented 1 month ago

Did you figure out how?

LazerJesus commented 1 month ago

nope sorry @nvimtor but i guess, since this feature is under active development from the core team, some changes are to be expected.