diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-06-21 11:34:49 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-06-21 12:16:26 +0200 |
commit | 21b074feb09b7f2e4807a816be6fd0687f23c564 (patch) | |
tree | 5801db9e54efcb4fbdfa49c6913ef40e487f9611 /runtime/lua/vim/lsp.lua | |
parent | 8d4a53fe6e20652946948170f2436ec520f9bdfe (diff) | |
download | rneovim-21b074feb09b7f2e4807a816be6fd0687f23c564.tar.gz rneovim-21b074feb09b7f2e4807a816be6fd0687f23c564.tar.bz2 rneovim-21b074feb09b7f2e4807a816be6fd0687f23c564.zip |
refactor(lsp): report full Nvim version string in clientInfo
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index cb1c101c58..ea81244c68 100644 --- 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. -- |