[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 7a0b93a76d: Close #900: Map more Emacs variables
From: |
ELPA Syncer |
Subject: |
[elpa] externals/eglot 7a0b93a76d: Close #900: Map more Emacs variables to LSP FormattingOptions fields |
Date: |
Sun, 27 Mar 2022 17:57:30 -0400 (EDT) |
branch: externals/eglot
commit 7a0b93a76d1c53811a1670eb8f8091e3536aa248
Author: Felicián Németh <felician.nemeth@gmail.com>
Commit: GitHub <noreply@github.com>
Close #900: Map more Emacs variables to LSP FormattingOptions fields
* eglot.el (eglot-format): Map require-final-newline to
insertFinalNewline and delete-trailing-lines to trimFinalNewlines.
---
eglot.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index 1c16240890..58ad4588ae 100644
--- a/eglot.el
+++ b/eglot.el
@@ -2381,7 +2381,9 @@ is not active."
(cl-list*
:textDocument (eglot--TextDocumentIdentifier)
:options (list :tabSize tab-width
- :insertSpaces (if indent-tabs-mode :json-false t))
+ :insertSpaces (if indent-tabs-mode :json-false t)
+ :insertFinalNewline (if require-final-newline t
:json-false)
+ :trimFinalNewlines (if delete-trailing-lines t
:json-false))
args)
:deferred method))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/eglot 7a0b93a76d: Close #900: Map more Emacs variables to LSP FormattingOptions fields,
ELPA Syncer <=