vim-matchup
vim-matchup copied to clipboard
Why does jumping not work for construct do / end in language elixir?
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
Hi, have you tried https://github.com/elixir-editors/vim-elixir?
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 ]%
.