/ocaml-ide

Ocaml plugin for IntelliJ IDEA

Primary LanguageKotlin

Ocaml IDE

Build Status

An Ocaml language plugin for IntelliJ IDEA. It uses merlin for most of it's heavy lifting.

Features

  • Syntax highlighting.
  • Autocompletion.
  • Got to declaration of value.

The merlin based features require a .merlin file to work.

Install the plugin

Install merlin

opam switch 4.04.0
opam install merlin

Generate the parser and lexer code

./gradlew generateOcamlLexer
./gradlew generateOcamlPsiAndParser

Run the plugin from gradle

./gradlew runIdea

Build the plugin

./gradlew buildPlugin

The plugin will be located at build/distributions/ocaml-idea-0.0.1-SNAPSHOT.zip

It should be possible to install the plugin on IntelliJ IDEA versions 2016.1 and later.