fix +format/region when formatting with LSP
This commit is contained in:
parent
ca0dbc798d
commit
649052337b
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ snippets or single lines."
|
||||||
(if (and +format-with-lsp
|
(if (and +format-with-lsp
|
||||||
(bound-and-true-p lsp-mode)
|
(bound-and-true-p lsp-mode)
|
||||||
(lsp-feature? "textDocument/rangeFormatting"))
|
(lsp-feature? "textDocument/rangeFormatting"))
|
||||||
#'lsp-format-region
|
(call-interactively #'lsp-format-region)
|
||||||
(save-restriction
|
(save-restriction
|
||||||
(narrow-to-region beg end)
|
(narrow-to-region beg end)
|
||||||
(let ((+format-region-p t))
|
(let ((+format-region-p t))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue