aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-08-01 07:36:57 -0700
committerGitHub <noreply@github.com>2023-08-01 07:36:57 -0700
commitdfe19d6e0047ea2a2a75dff0c57f4c4de1c0196a (patch)
treeeda17150f1d1cc8985c925a1994b8ad960a48c2e /runtime/doc
parent48d533272e57e91e4d14c93b26d4922957f40cd7 (diff)
parentf41496ce74fb30c18bb9a03027a172800b269643 (diff)
downloadrneovim-dfe19d6e0047ea2a2a75dff0c57f4c4de1c0196a.tar.gz
rneovim-dfe19d6e0047ea2a2a75dff0c57f4c4de1c0196a.tar.bz2
rneovim-dfe19d6e0047ea2a2a75dff0c57f4c4de1c0196a.zip
Merge #24504 feat(lsp): protocol.Methods
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt6
-rw-r--r--runtime/doc/news.txt27
2 files changed, 18 insertions, 15 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 3d7e1ed582..f85150adb6 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -2189,6 +2189,12 @@ make_client_capabilities()
Return: ~
lsp.ClientCapabilities
+Methods *vim.lsp.protocol.Methods*
+ LSP method names.
+
+ See also: ~
+ • https://microsoft.github.io/language-server-protocol/specifications/specification-current/#metaModel
+
*vim.lsp.protocol.resolve_capabilities()*
resolve_capabilities({server_capabilities})
Creates a normalized object describing LSP server capabilities.
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 3cc59af63f..c3fec85163 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -70,21 +70,6 @@ The following new APIs and features were added.
• 'diffopt' "linematch" scoring algorithm now favours larger and less groups
https://github.com/neovim/neovim/pull/23611
-• Added |vim.lsp.status()| to consume the last progress messages as a string.
-
-• Neovim's LSP client now always saves and restores named buffer marks when
- applying text edits.
-
-• Nvim now supports the `positionEncoding` server capability. If a server
- responds with the `positionEncoding` capability in its initialization
- response, Nvim automatically sets the client's `offset_encoding` field.
-
-• Dynamic registration of LSP capabilities. An implication of this change is
- that checking a client's `server_capabilities` is no longer a sufficient
- indicator to see if a server supports a feature. Instead use
- `client.supports_method(<method>)`. It considers both the dynamic
- capabilities and static `server_capabilities`.
-
• |vim.iter()| provides a generic iterator interface for tables and Lua
iterators |luaref-in|.
@@ -118,10 +103,22 @@ The following new APIs and features were added.
terminal emulator that supports |tui-csiu|.
• LSP
+ • LSP method names are available in |vim.lsp.protocol.Methods|.
• Implemented LSP inlay hints: |vim.lsp.inlay_hint()|
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_inlayHint
• Implemented pull diagnostic textDocument/diagnostic: |vim.lsp.diagnostic.on_diagnostic()|
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_diagnostic
+ • Added |vim.lsp.status()| to consume the last progress messages as a string.
+ • LSP client now always saves and restores named buffer marks when applying
+ text edits.
+ • LSP client now supports the `positionEncoding` server capability. If a server
+ responds with the `positionEncoding` capability in its initialization
+ response, Nvim automatically sets the client's `offset_encoding` field.
+ • Dynamic registration of LSP capabilities. An implication of this change is
+ that checking a client's `server_capabilities` is no longer a sufficient
+ indicator to see if a server supports a feature. Instead use
+ `client.supports_method(<method>)`. It considers both the dynamic
+ capabilities and static `server_capabilities`.
• Bundled treesitter parser and queries (highlight, folds) for Markdown,
Python, and Bash.