reasonml-editor / vim-reason-plus

Reason Vim editor integration
MIT License
153 stars 20 forks source link

Code indentation #3

Open theJian opened 6 years ago

theJian commented 6 years ago

Can we have a default code indentation option for reasonML files?

alexeygolev commented 5 years ago

@theJian can you elaborate?

AZanellato commented 5 years ago

I don't know if this is the same thing as @theJian is thinking about, but I am reading Web Development with ReasonML and I have this code:

switch (calcButton) {
  | Some(element) =>
    D.EventTarget.addClickEventListener(
      calculate, Elem.asEventTarget(element))
    | None => ()
  };

I saw that the legacy reason plugin integrates with refmt. Do we have anything like that for this plugin?