lexical-lsp / lexical

Lexical is a next-generation elixir language server
874 stars 80 forks source link

Suggestion: Support `textDocument/hover` for functions implementing a behaviour #810

Open leonqadirie opened 1 month ago

leonqadirie commented 1 month ago

Provided example

defmodule MyModule do
  use GenServer

  @impl GenServer
  def init(arg) do
    # ...
  end
end

Current behaviour Using hover on init only displays MyModule.init.

Suggested behaviour Using hover on init additionally provides the documentation for the behaviour's init callback.