aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2022-12-08 10:55:01 +0100
committerGitHub <noreply@github.com>2022-12-08 10:55:01 +0100
commit54305443b9cd5ac2c2220f12e01a653e8064c3a4 (patch)
treefaaa47fcfbed98713337ef7861466a017cc5112e /runtime/doc
parenta505c1acc37b0f9d4f7d93bfe899a59514bd0027 (diff)
downloadrneovim-54305443b9cd5ac2c2220f12e01a653e8064c3a4.tar.gz
rneovim-54305443b9cd5ac2c2220f12e01a653e8064c3a4.tar.bz2
rneovim-54305443b9cd5ac2c2220f12e01a653e8064c3a4.zip
feat(lsp): support willSave & willSaveWaitUntil capability (#21315)
`willSaveWaitUntil` allows servers to respond with text edits before saving a document. That is used by some language servers to format a document or apply quick fixes like removing unused imports.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/news.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 4896cf19d8..047973242f 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -39,6 +39,11 @@ NEW FEATURES *news-features*
The following new APIs or features were added.
+• Added support for the `willSave` and `willSaveWaitUntil` capabilities to the
+ LSP client. `willSaveWaitUntil` allows a server to modify a document before it
+ gets saved. Example use-cases by language servers include removing unused
+ imports, or formatting the file.
+
• Treesitter syntax highlighting for `help` files now supports highlighted
code examples. To enable, create a `.config/nvim/ftplugin/help.lua` with
the contents >lua