coc-rescript

ReScript extension for coc.nvim

Usage no npm install needed!

<script type="module">
  import cocRescript from 'https://cdn.skypack.dev/coc-rescript';
</script>

README

coc-rescript

npm version

coc.nvim extension for ReScript.

The server is a rewrite of the VS Code server in ReScript.

Features

  • Formatting (bs-platform >= 8.2.0)
  • Error highlighting (bs-platform >= 8.3.0)

Installation

:CocInstall coc-rescript

In order to get automatic formatting you need to add the following in your :CocConfig:

{
  "coc.preferences.formatOnSaveFiletypes": ["rescript"]
}