-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Otter.nvim Integration for ~H Heex support? #101
Comments
I think this might be already possible with a few lines of treesitter magic or with one of the more advanced comment plugins. I'll look into it! |
Sounds good, that would be nice regardless! Another benefit of using something like otter would be snippets that target .heex would be able to trigger inside the ~H""" """ section. I have a number of html specific snippets that work in .heex files. |
Maybe this could help. I saw this config in the Svelte repo to understand their ~V sigil: Neovim Treesitter Config ~/.config/nvim/after/queries/elixir/injections.scm `; extends ; Svelte |
That already exists for the H sigil. It allows the highlighting of the snippet. |
Looking at otter.nvim (discussion here) it seems it scans for specific sections of your main languages buffer, in our case
~H"""<embedded language>""""
, and allows you to use another language within it by synchronizing a hidden buffer.It would be amazing to be able to comment out sections of the html in embedded heex like we can .heex files!
The text was updated successfully, but these errors were encountered: