reasonml / reason-cli

Globally installable Reason toolchain.
MIT License
291 stars 23 forks source link

Hi there, can we archive this repo and add instructions to use bsrefmt from bs-platform? #103

Open peterpme opened 4 years ago

peterpme commented 4 years ago

Hi there,

In the process of trying to fix my ale, reason-language-server, languageclient-neovim set up, I stumbled over this repo and I totally forgot about it.

I then realized its quite stale.

Is it possible to archive this and make it easier for newcombers?

Thanks!

ianchanning commented 3 years ago

ALE doesn't like using bsrefmt for reason, it gives the following error:

There is no fixer named `bsrefmt`. Check :ALEFixSuggest

However seeing as I'm using coc.nvim with coc-reason which handles the linting and all the linting and LSP, all I need is a command to run refmt.

So (hat tip to this hashrocket post) that you can run:

:!bsrefmt --in-place %

So there's not much need for ALE. Note this only works for me because I installed bs-platform globally.