You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The title more or less says it all. When I'm editing a file where filetype=eelixir, e.g. .eex or .heex file, then autoindentation
works correctly if, say, I add an if statement:
# I type this line:
<%= if condition do %>
# Still in insert mode, I hit Enter, and two spaces are added, with the cursor ending up at the X:
<%= if condition do %>
X
But if I try to add a "dot" tag - not sure of the correct terminology, I'm talking about tags that call an Elixir function and start with <. - then the autoindent doesn't work:
# After typing the first line and hitting Return, no new indentation is added and the cursor is at X:
<.form {some_attributes}>
X
Is there a way to fix this?
The text was updated successfully, but these errors were encountered:
I'm interested in contributing to the project but I'm still familiarizing myself with the codebase and Elixir itself 😅.
As for now, I can only offer you a hacky work-around, it would involve adding the following to your runtime path in an after directory (i.e. after/ftplugin/heex.vim):
@samanera Please let me know if I can help you get acquainted at all. I’m on the official Elixir Discord if you’d like to get in touch. I’ve been fairly absent from this project as I haven’t used Elixir in many years, but I have a pretty good understanding of most of the project and would like to support any motivated contributors
The title more or less says it all. When I'm editing a file where
filetype=eelixir
, e.g..eex
or.heex
file, then autoindentationworks correctly if, say, I add an
if
statement:But if I try to add a "dot" tag - not sure of the correct terminology, I'm talking about tags that call an Elixir function and start with
<.
- then the autoindent doesn't work:Is there a way to fix this?
The text was updated successfully, but these errors were encountered: