emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/eglot2emacs 5d2f6bc667 055/120: Map more emacs variables to lsp


From: João Távora
Subject: feature/eglot2emacs 5d2f6bc667 055/120: Map more emacs variables to lsp formattingoptions fields
Date: Thu, 20 Oct 2022 07:16:52 -0400 (EDT)

branch: feature/eglot2emacs
commit 5d2f6bc667afb8252170690ad9523f327d93bc74
Author: Felicián Németh <felician.nemeth@gmail.com>
Commit: GitHub <noreply@github.com>

    Map more emacs variables to lsp formattingoptions fields
    
    * eglot.el (eglot-format): Map require-final-newline to
    insertFinalNewline and delete-trailing-lines to trimFinalNewlines.
    
    GitHub-reference: close https://github.com/joaotavora/eglot/issues/900
---
 lisp/progmodes/eglot.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 1c16240890..58ad4588ae 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/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))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]