From da09f9b551badfb3fd363589009168560ae607f6 Mon Sep 17 00:00:00 2001 From: mathew Date: Fri, 28 Jul 2023 15:24:18 +0800 Subject: feat(gen_lsp.lua): protocol.Methods #24504 --- runtime/doc/lsp.txt | 6 ++++++ runtime/doc/news.txt | 2 ++ 2 files changed, 8 insertions(+) (limited to 'runtime/doc') 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 e40fdda3f8..f9ee9e02a1 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -176,6 +176,8 @@ The following changes to existing APIs or features add new behavior. supports it, unless |'keywordprg'| was customized before calling |vim.lsp.start()|. +• |vim.lsp.protocol.Methods| all the lsp methods constants. + ============================================================================== REMOVED FEATURES *news-removed* -- cgit From f41496ce74fb30c18bb9a03027a172800b269643 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 1 Aug 2023 15:52:53 +0200 Subject: feat(gen_lsp.lua): sort by name, handle failure #24504 --- runtime/doc/news.txt | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'runtime/doc') diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index f9ee9e02a1..6b5e9b8d4a 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()`. 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()`. It considers both the dynamic + capabilities and static `server_capabilities`. • Bundled treesitter parser and queries (highlight, folds) for Markdown, Python, and Bash. @@ -176,8 +173,6 @@ The following changes to existing APIs or features add new behavior. supports it, unless |'keywordprg'| was customized before calling |vim.lsp.start()|. -• |vim.lsp.protocol.Methods| all the lsp methods constants. - ============================================================================== REMOVED FEATURES *news-removed* -- cgit