aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp.lua
diff options
context:
space:
mode:
authorMatthieu Coudron <teto@users.noreply.github.com>2020-12-20 21:59:25 +0100
committerGitHub <noreply@github.com>2020-12-20 21:59:25 +0100
commit1e5913483469528c7e8d1f927b28c0185eb94941 (patch)
tree9544669134d0e97aae394f43b787b2ccd3959a60 /runtime/lua/vim/lsp.lua
parentb1711e6f922598f00c4d2c879094afdbba44c187 (diff)
downloadrneovim-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.lua2
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.