Seems to me it would make a lot of sense to use ocp-indent to provide standard indentation. I'm not at all sure how language-ocaml works, but maybe that can be forked to only do highlighting and then another package could use "ocp-indent --lines - --numeric". This could be done on the fly (on newlines I suppose) and only for the lines that have changed.
Could probably follow the approach from the emacs package: https://github.com/OCamlPro/ocp-indent/blob/master/tools/ocp-indent.el
Technically it would be nicest if this was another package. Doesn't seem to be any point in bundling this in linter-ocaml. But I'll record the idea here for now.
It would be incompatible with language-ocaml however, so would need to also provide highlighting (and somehow mark itself as incompatible with language-ocaml so the user doesn't get weird behavior).
Seems to me it would make a lot of sense to use ocp-indent to provide standard indentation. I'm not at all sure how language-ocaml works, but maybe that can be forked to only do highlighting and then another package could use "ocp-indent --lines - --numeric". This could be done on the fly (on newlines I suppose) and only for the lines that have changed.
Could probably follow the approach from the emacs package: https://github.com/OCamlPro/ocp-indent/blob/master/tools/ocp-indent.el
Technically it would be nicest if this was another package. Doesn't seem to be any point in bundling this in linter-ocaml. But I'll record the idea here for now.
It would be incompatible with language-ocaml however, so would need to also provide highlighting (and somehow mark itself as incompatible with language-ocaml so the user doesn't get weird behavior).