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
|
||||
(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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue