tree-sitter-surface icon indicating copy to clipboard operation
tree-sitter-surface copied to clipboard

How to use this project from Emacs?

Open anildigital opened this issue 3 years ago • 2 comments

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

anildigital avatar Dec 09 '21 12:12 anildigital

@connorlay Any ideas what can be done for this issue?

anildigital avatar Jan 19 '22 06:01 anildigital

@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

wkirschbaum avatar Feb 19 '23 13:02 wkirschbaum