spacemac安装库适配ReScript
- 操作系统 MacOS
- spacemacs 版本: 26.3
安装步骤如下:
LSP mode
TODO: make a configuration layer
- Add lsp to the dotspacemacs-configuration-layers section of your spacemacs configuration file (SPC f e d to find that file) – it should look something like this:
dotspacemacs-configuration-layers
'(
lsp
)
- Add rescript-mode and lsp-rescript to the dotspacemacs-additional-packages section of your spacemacs configuration file – it should look something like this:
dotspacemacs-additional-packages
'(
lsp-rescript
rescript-mode
)
- Add this to the dotspacemacs/user-config section of your spacemacs configuration file:
;; Tell `rescript-mode` how to run your copy of `server.js` from rescript-vscode
;; (you'll have to ad