Skip to content
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

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

Open
halafi opened this issue Sep 6, 2022 · 2 comments
Open

Comments

@halafi
Copy link

halafi commented Sep 6, 2022

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

@andymass
Copy link
Owner

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

@miquecg
Copy link

miquecg commented Sep 22, 2022

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 ]%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants