gregsexton / origami.el

A folding minor mode for Emacs
515 stars 41 forks source link

support of scala? #29

Open cnglen opened 8 years ago

gregsexton commented 8 years ago

Scala is syntactically (and otherwise :D) quite a complex language, that I don't use. Happy to take a PR for this but, honestly, I'm unlikely to dig in to this any time soon.

gregsexton commented 8 years ago

In the meantime you might want to use the indentation parser?

wbolster commented 6 years ago

https://github.com/gregsexton/origami.el/issues/69 may be of interest to you :)

coreyoconnor commented 6 years ago

I've been happy with the c style parser and scala:

(setq origami-parser-alist (cons '(scala-mode . origami-c-style-parser) origami-parser-alist)) 
skrytebane commented 3 years ago

Maybe https://github.com/emacs-lsp/lsp-origami works for Scala (Metals?) as well?