A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rescript-lang/vim-rescript below:

GitHub - rescript-lang/vim-rescript

Vim runtime files for ReScript.

If you are experiencing any troubles, open an issue or visit our Forum and ask for guidance.

See :h rescript for the detailed helpfile.

vim-rescript can be installed either manually or by using your favourite plugin manager.

" vim-plug
Plug 'rescript-lang/vim-rescript'

" Vundle
Plugin 'rescript-lang/vim-rescript'

" NeoBundle
NeoBundle 'rescript-lang/vim-rescript'
-- Lazy.nvim
{ 'rescript-lang/vim-rescript', ft="rescript" }

You can also pin your installation to specific tags (check our releases here):

With Plug:

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

With Lazy.nvim:

{ 'rescript-lang/vim-rescript', tag = "v2.1.0" }

First you need install the language server for ReScript from npm

Note If you are using mason.nvim you can install the ReScript Language Server using the command MasonInstall rescript-language-server

npm install -g @rescript/language-server

The binary is called rescript-language-server

Install the nvim-lspconfig package and setup the LSP

local lspconfig = require('lspconfig')

lspconfig.rescriptls.setup{}

For more details, see server configuration

(:h rescript-coc)

After the installation, open your coc config (:CocConfig) and add the following configuration:

"languageserver": {
  "rescript": {
    "enable": true,
    "module": "rescript-language-server",
    "args": ["--node-ipc"],
    "filetypes": ["rescript"],
    "rootPatterns": ["rescript.json", "bsconfig.json"]
  }
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4