renzmann / treesit-auto

Automatic installation, usage, and fallback for tree-sitter major modes in Emacs 29
GNU General Public License v3.0
369 stars 28 forks source link

Enable installation of grammars for interdependant languages #33

Closed renzmann closed 1 year ago

renzmann commented 1 year ago

This has come up for both typescript/tsx in #30 and elixir/heex in #31. For these languages that embed more than one grammar, the :requires keyword is one way to ensure all grammars are installed when visiting an appropriate file.

@wkirschbaum I'm going to include your :requires examples from #31 in the case of elixir/heex, and let's keep the discussion open for the other refactor work on either that PR or a new one

wkirschbaum commented 1 year ago

@renzmann adding requires is not enough to get elixir-ts-mode to work, but i will address it in follow up pr's. thanks for making this change.