From 61c6706c0eb1c05cb56fdffe1514b6099cab9e3a Mon Sep 17 00:00:00 2001 From: Mike Rashkovsky Date: Wed, 7 Oct 2020 15:27:20 -0400 Subject: [PATCH] Allow passing config/debug settings with an emacs setup --- Readme.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index e60bdb69..3aacea71 100644 --- a/Readme.md +++ b/Readme.md @@ -93,7 +93,17 @@ If you're on a newer version of macOS and receive the error popup "reason-langua :major-modes '(reason-mode) :notification-handlers (ht ("client/registerCapability" 'ignore)) :priority 1 - :server-id 'reason-ls)) + :server-id 'reason-ls + :initialized-fn (lambda (workspace) + ;; Example for passing configuration/debug settings + ;; (lsp-register-custom-settings + ;; ;; Change refmt format_width to 100 + ;; '(("reason_language_server.format_width" 100) + ;; ;; use nil to set autoRebuild to false, t to indicate that this setting expects a boolean + ;; ("reason_language_server.autoRebuild" nil t))) + (with-lsp-workspace workspace + (lsp--set-configuration + (lsp-configuration-section "reason_language_server")))))) ``` ### Atom