tree-sitter-surface
tree-sitter-surface copied to clipboard
How to use this project from Emacs?
For Emacs, at a minimum we need https://github.com/elixir-lang/tree-sitter-elixir/blob/main/queries/highlights.scm highlights.scm file. This is for elixir tree sitter example.
But for tree-sitter-surface, I don’t see any such file in the above repo. Even if you found the file, if it’s not supported by emacs tree sitter natively, you need to do a bunch of work likely compiling the surface tree sitter lib, setting up the emacs side etc. I would suggest to open a issue in the repo
@connorlay Any ideas what can be done for this issue?
@anildigital if you want to try this: https://github.com/wkirschbaum/surface-ts-mode and let me know what you think. I don't use surface so will rely on feedback.
I also pushed a change to treat surface sigils as heex ( not perfect, but hopefully better than nothing ) https://github.com/wkirschbaum/elixir-ts-mode/commits/main