editor/format lsp feature requirement from textDocument/rangeFormatting to textDocument/formatting.

This commit is contained in:
LuoZhipeng 2021-07-27 17:41:26 +08:00
parent caf480e18a
commit bf488394e9

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)