Skip to content

Commit

Permalink
Close joaotavora#900: Map more Emacs variables to LSP FormattingOptio…
Browse files Browse the repository at this point in the history
…ns fields

* eglot.el (eglot-format): Map require-final-newline to
insertFinalNewline and delete-trailing-lines to trimFinalNewlines.
  • Loading branch information
nemethf authored Mar 27, 2022
1 parent 5772e04 commit 7a0b93a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))

Expand Down

0 comments on commit 7a0b93a

Please sign in to comment.