neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit e27377e33e029a9c2efb282d4c4e51effd76dd88
parent ded01a819ab0e10104aa29ab67cf67e4efd75e04
Author: Justin M. Keyes <justinkz@gmail.com>
Date:   Wed, 21 Jun 2023 03:36:39 -0700

Merge #24086 LSP ctx.version, report full Nvim version


Diffstat:
Mruntime/doc/lsp.txt | 5+++++
Mruntime/lua/vim/lsp.lua | 3+--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt @@ -238,6 +238,11 @@ For |lsp-response|, each |lsp-handler| has this signature: > The parameters used in the original request which resulted in this handler call. + {version} (number) Document version at time of + request. Handlers can compare this to the + current document version to check if the + response is "stale". + See also |b:changedtick|. {config} (table) Configuration for the handler. diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua @@ -1345,7 +1345,6 @@ function lsp.start_client(config) messages = 'messages', verbose = 'verbose', } - local version = vim.version() local workspace_folders --- @type table[]? local root_uri --- @type string? @@ -1379,7 +1378,7 @@ function lsp.start_client(config) -- since 3.15.0 clientInfo = { name = 'Neovim', - version = string.format('%s.%s.%s', version.major, version.minor, version.patch), + version = tostring(vim.version()), }, -- The rootPath of the workspace. Is null if no folder is open. --