-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
rescript.txt
50 lines (36 loc) · 1.59 KB
/
rescript.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
rescript.txt VIM plugin for the ReScript programming language
____ ____ _ _ ~
| _ \ ___/ ___| ___ _ __(_)_ __ | |_ ~
| |_) / _ \___ \ / __| '__| | '_ \| __| ~
| _ < __/___) | (__| | | | |_) | |_ ~
|_| \_\___|____/ \___|_| |_| .__/ \__| ~
|_| ~
Main Website: <https://rescript-lang.org/>
Plugin Website: <https://github.com/rescript-lang/vim-rescript>
===============================================================================
CONTENTS *rescript*
Intro ......................... |rescript-introduction|
COC Config..................... |rescript-coc|
===============================================================================
INTRODUCTION *rescript-introduction*
This plugin provides basic features to work on ReScript projects, such as:
- Syntax highlighting
- Fileype detection
- Basic automatic indentation
===============================================================================
COC-CONFIG *rescript-coc*
In case you want to use ReScript with |coc-nvim|, open your config file with
|:CocConfig| and add following settings: >
"languageserver": {
"rescript": {
"enable": true,
"module": "rescript-language-server",
"args": ["--node-ipc"],
"filetypes": ["rescript"],
"rootPatterns": ["rescript.json", "bsconfig.json"]
}
}
<
Save the configuration, run |:CocRestart| and open a (built) ReScript project
and check your code for type-hints.
vim:tw=78:ts=8:noet:ft=help:norl: