elixir-editors / elixir-editors/vim-elixir
Autoindent not working correctly for <.dot> style HTML tags/components in eelixir
- Dominant language
- Ruby
- Stars
- 1.3k
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.