Whoops, in my excitement learning about treesitter I didn’t notice that there already is an ocaml-ts-mode. That one is probably the preferred one to use. I’ll probably direct any of my development towards it. But learning how to make a major mode was a fun experience.
I’m not sure which mode you’re referring to, but I don’t think that there’s any ocaml-ts-mode with active development and any meaningful adoption yet. Perhaps yours will be the first one!
I’ve been pushing a few changes here and there for my ocaml-ts-mode. Some known issues:
paragraph fill does not work correctly.
the language mode indentation totally doesn’t work
does’t work with hideshow mode, which would be nice. Part of that is just Ocaml isn’t a language very friendly to hideshow mode.
Other than that for the most part it suits my needs but happy to take PRs. I want to fix the fill paragraph for sure at some point. I use ocamlformat which mostly alleviates issues (1) and (2).