Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
lsp-ocaml.el

README.md

lsp-ocaml

MELPA MELPA Stable

OCaml/Reason support for lsp-mode using ocaml-language-server.

Installation

From MELPA

Install the package lsp-ocaml

From source

Clone this repository and lsp-mode to suitable paths, and add them to your load path:

(add-to-list 'load-path "<path to lsp-mode>")
(add-to-list 'load-path "<path to lsp-ocaml>")

Enabling lsp-ocaml

(require 'lsp-mode)
(require 'lsp-ocaml)

(add-hook 'tuareg-mode-hook #'lsp-ocaml-enable)
(add-hook 'caml-mode-hook #'lsp-ocaml-enable)
(add-hook 'reason-mode-hook #'lsp-ocaml-enable) ;; for Reason support

You also need ocaml-language-server installed and on your PATH:

npm i -g ocaml-language-server

(sudo may be necessary depending on how you have npm setup)

You can’t perform that action at this time.