Skip to content

Commit

Permalink
Merge pull request #5302 from holyfight6/format-all-lsp
Browse files Browse the repository at this point in the history
Changed editor/format lsp feature requirement from textDocument/rangeFormatting to textDocument/formatting
  • Loading branch information
hlissner committed Jul 29, 2021
2 parents 3d0b609 + bf48839 commit 5610774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/editor/format/autoload/format.el
Expand Up @@ -112,7 +112,7 @@ Prompts for a formatter if universal arg is set."
(list +format-with t))
((and +format-with-lsp
(bound-and-true-p lsp-managed-mode)
(lsp-feature? "textDocument/rangeFormatting"))
(lsp-feature? "textDocument/formatting"))
(list 'lsp nil))
((and +format-with-lsp
(bound-and-true-p eglot--managed-mode)
Expand Down

0 comments on commit 5610774

Please sign in to comment.