mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
refactor(lsp): report full Nvim version string in clientInfo
This commit is contained in:
@@ -1345,7 +1345,6 @@ function lsp.start_client(config)
|
|||||||
messages = 'messages',
|
messages = 'messages',
|
||||||
verbose = 'verbose',
|
verbose = 'verbose',
|
||||||
}
|
}
|
||||||
local version = vim.version()
|
|
||||||
|
|
||||||
local workspace_folders --- @type table[]?
|
local workspace_folders --- @type table[]?
|
||||||
local root_uri --- @type string?
|
local root_uri --- @type string?
|
||||||
@@ -1379,7 +1378,7 @@ function lsp.start_client(config)
|
|||||||
-- since 3.15.0
|
-- since 3.15.0
|
||||||
clientInfo = {
|
clientInfo = {
|
||||||
name = 'Neovim',
|
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.
|
-- The rootPath of the workspace. Is null if no folder is open.
|
||||||
--
|
--
|
||||||
|
Reference in New Issue
Block a user