vim-matchup icon indicating copy to clipboard operation
vim-matchup copied to clipboard

Why does jumping not work for construct do / end in language elixir?

Open halafi opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. filetype: elixir, see title

Describe the solution you'd like maybe this can be configured somehow, if someone could point me in the right direction

halafi avatar Sep 06 '22 08:09 halafi

Hi, have you tried https://github.com/elixir-editors/vim-elixir?

andymass avatar Sep 11 '22 15:09 andymass

defmodule HelloWorld do
  @moduledoc """
  Documentation for `HelloWorld`.
  """

  @doc """
  Hello world.

  ## Examples

      iex> HelloWorld.hello()
      :world

  """
  def hello do
    :world
  end

  def foo do
    :ok
  end
end

This example works for me. I also have vim-polyglot installed to provide syntax highlighting and file types.

But I don't completely understand how to use vim-matchup yet, besides the obvious % replacement. For instance, if cursor is placed in line 6 where the @doc annotation begins, how could I jumpt to the next function definition. Using ]] works just fine and it's a simple motion. It seems though that z% works in the same way but not ]%.

miquecg avatar Sep 22 '22 13:09 miquecg