aerial.nvim icon indicating copy to clipboard operation
aerial.nvim copied to clipboard

Scala treesitter support

Open mpasa opened this issue 2 years ago • 1 comments

It would be nice to have basic Scala support for Aerial. I can take some time checking how this is implemented and send a PR for the base constructs myself.

Language: scala

Please provide a minimal file in your language that includes all of the language constructs that you would like to see listed by aerial. Here is an example for lua: lua_test.lua. Examples for other languages are in the same directory.

object Object {
  def foo(x: Int): Int = {
    5
  }
}

trait Trait {
  def foo(x: Int): Unit
}

class C {
  def foo(x: Int): Unit = {
    ???
  }
  def bar(x: Int): Unit = {
    ???
  }
}

If it is not obvious how each of the language constructs should map to a LSP SymbolKind, please specify which SymbolKind to use for each of them.

mpasa avatar Aug 17 '22 13:08 mpasa

Sent a PR for basic support on https://github.com/stevearc/aerial.nvim/pull/140

mpasa avatar Aug 17 '22 16:08 mpasa

Is there additional support that you need for Scala, or can I close out this issue?

stevearc avatar Oct 19 '22 13:10 stevearc

@stevearc This can be closed. Thank you.

mpasa avatar Oct 20 '22 18:10 mpasa