Merge pull request #5302 from holyfight6/format-all-lsp

Changed editor/format lsp feature requirement from textDocument/rangeFormatting to textDocument/formatting
This commit is contained in:
Henrik Lissner 2021-07-28 21:28:19 -04:00 committed by GitHub
commit 56107744df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)