Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This helps in the users configuring things like lsp-clients accordingly. Example (warn: changes are not buffer local) (setq esy-mode-callback (lambda (esy-project-type) (cond ((eq esy-project-type 'opam) (lsp-register-client (make-lsp-client :new-connection (lsp-stdio-connection '("opam" "exec" "--" "ocamllsp")) :major-modes '(reason-mode tuareg-mode) :server-id 'opam-ocaml-lsp))) ((eq esy-project-type 'esy) (lsp-register-client (make-lsp-client :new-connection (lsp-stdio-connection '("esy" "ocamllsp")) :major-modes '(reason-mode tuareg-mode) :server-id 'esy-ocaml-lsp))) ((eq esy-project-type 'npm) (message "TODO: configure lsp for esy JS project"))) (message "esy-mode ready")))
- Loading branch information