diff options
author | Matthieu Coudron <teto@users.noreply.github.com> | 2020-12-20 21:59:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 21:59:25 +0100 |
commit | 1e5913483469528c7e8d1f927b28c0185eb94941 (patch) | |
tree | 9544669134d0e97aae394f43b787b2ccd3959a60 /runtime/lua/vim/lsp.lua | |
parent | b1711e6f922598f00c4d2c879094afdbba44c187 (diff) | |
download | rneovim-1e5913483469528c7e8d1f927b28c0185eb94941.tar.gz rneovim-1e5913483469528c7e8d1f927b28c0185eb94941.tar.bz2 rneovim-1e5913483469528c7e8d1f927b28c0185eb94941.zip |
lsp: add $/progress report (#13294)
Heavily inspired by https://github.com/nvim-lua/lsp-status.nvim.
listen to the LspProgressUpdate event to update your statusline.
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 7c7edf98e7..0326550245 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -569,6 +569,8 @@ function lsp.start_client(config) -- TODO(remove-callbacks) callbacks = handlers; handlers = handlers; + -- for $/progress report + messages = { name = name, messages = {}, progress = {}, status = {} } } -- Store the uninitialized_clients for cleanup in case we exit before initialize finishes. |