elixir-editors / vim-elixir

Vim configuration files for Elixir

Home Page:http://elixir-lang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LiveEEX sigil "~L" does not switch to EEx-style indentation

nkezhaya opened this issue · comments

Running ggVG= to indent the file leads to:

Actual

defmodule MyApp.Foo do
  use MyApp.Web, :live_component

  @impl true
  def mount(socket) do
    {:ok, socket}
  end

  @impl true
  def render(assigns) do
    ~L"""
    <div>
    <p>component!</p>
    </div>
    """
  end
end

Expected

defmodule MyApp.Foo do
  use MyApp.Web, :live_component

  @impl true
  def mount(socket) do
    {:ok, socket}
  end

  @impl true
  def render(assigns) do
    ~L"""
    <div>
      <p>component!</p>
    </div>
    """
  end
end

I do have the same issue… :-/ Makes editing the LiveView files rather tedious.