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

View File

@ -112,7 +112,7 @@ Prompts for a formatter if universal arg is set."
(list +format-with t)) (list +format-with t))
((and +format-with-lsp ((and +format-with-lsp
(bound-and-true-p lsp-managed-mode) (bound-and-true-p lsp-managed-mode)
(lsp-feature? "textDocument/rangeFormatting")) (lsp-feature? "textDocument/formatting"))
(list 'lsp nil)) (list 'lsp nil))
((and +format-with-lsp ((and +format-with-lsp
(bound-and-true-p eglot--managed-mode) (bound-and-true-p eglot--managed-mode)