aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2022-08-08 18:30:17 +0200
committerGitHub <noreply@github.com>2022-08-08 18:30:17 +0200
commit68c674af0fbc4158690319aa6125a098a592412d (patch)
treef6777c5d927aa3852927f1ea705ae8357447a5db /runtime/doc
parentd31ee6664d3b8d37ac4bb95b3adad397e90a8da1 (diff)
downloadrneovim-68c674af0fbc4158690319aa6125a098a592412d.tar.gz
rneovim-68c674af0fbc4158690319aa6125a098a592412d.tar.bz2
rneovim-68c674af0fbc4158690319aa6125a098a592412d.zip
feat(lsp): set formatexpr by default (#19677)
Follow up to https://github.com/neovim/neovim/pull/19003
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 48b3f6b4bb..94726ceaab 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -59,6 +59,9 @@ language server supports the functionality.
- |tagfunc| is set to |vim.lsp.tagfunc|. This enables features like
go-to-definition, |:tjump|, and keymaps like |CTRL-]|, |CTRL-W_]|,
|CTRL-W_}| to utilize the language server.
+- |formatexpr| is set to |vim.lsp.formatexpr| if both |formatprg| and
+ |formatexpr| are empty. This allows to format lines via |gq| if the language
+ server supports it.
To use other LSP features like hover, rename, etc. you can setup some
additional keymaps. It's recommended to setup them in a |LspAttach| autocmd to