branch: elpa/editorconfig commit 3c03cef3110024016c688553733cdc3694a8a799 Author: 10sr <8.slas...@gmail.com> Commit: GitHub <nore...@github.com>
Add doc about lsp-mode (#266) * WIP Add doc about lsp-mode * Update README --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index c436e8aed7..46e83afc15 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,16 @@ Typically it will occur when the major-mode is not defined using Please feel free to submit issues if you find such modes! +### `editorconfig-format-buffer` does not work well with lsp-mode + +By default, [lsp-mode][] configures indent-region-function so that Emacs uses +language servers' `textDocument/rangeFormatting` request to format text in +buffers. +So EditorConfig settings are ignored unless language servers +themselves support loading configs from `.editorconfig`. + +To avoid this behavior ad-hocly, set `lsp-enable-indentation` to nil. + ## Submitting Bugs and Feature Requests @@ -226,3 +236,4 @@ with this program. If not, see <https://www.gnu.org/licenses/>. [EditorConfig C Core]: https://github.com/editorconfig/editorconfig-core-c [properties]: https://editorconfig.org/#supported-properties [CMake]: https://cmake.org +[lsp-mode]: https://github.com/emacs-lsp/lsp-mode