[ANN] vim-rescript 1.1.0

New VIM Plugin Release

vim-rescript@1.1.0 is now available.

This release updates to the newest editor-support with a few quality-of-life improvements and some crucial fixes for error recovery in LSP setups.

We also improved the :RescriptInfo command to contain more debugging info, such as the version number of the vendored rescript-vscode plugin.

See the full Changelog here

Upgrade instructions

In your vimrc:

  Plug 'rescript-lang/vim-rescript', {'tag': 'v1.1.0'}

Run :PlugUpdate afterwards.

If you want to verify the installation, just run following commands in your shell:

cd ~/.config/nvim/plugged/vim-rescript
git describe
# output should be v1.1.0

vim-coc users

Run :CocConfig and update your rescript LSP module path:

    "rescript": {
      "enable": true,
      "module": "~/.config/nvim/plugged/vim-rescript/rescript-vscode/extension/server/out/server.js",
      "args": ["--node-ipc"],
      "filetypes": ["rescript"],
      "rootPatterns": ["bsconfig.json"]
    },

(Notice how the module path changed the rescript-vscode-1.0.0 direcotry to rescript-vscode. This change will make it easier to upgrade in the future without the need to update the CocConfig all the time.)

Enjoy!

2 Likes

Awesome, loving the vim setup!

thanks, for the effort guys :smiling_face_with_three_hearts: