Merge pull request #3226 from tudurom/develop

Fix +format/region when formatting with LSP
This commit is contained in:
Henrik Lissner
2020-05-26 12:48:17 -04:00
committed by GitHub

View File

@ -223,7 +223,7 @@ snippets or single lines."
(if (and +format-with-lsp
(bound-and-true-p lsp-mode)
(lsp-feature? "textDocument/rangeFormatting"))
#'lsp-format-region
(call-interactively #'lsp-format-region)
(save-restriction
(narrow-to-region beg end)
(let ((+format-region-p t))