aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/buf.lua
diff options
context:
space:
mode:
authorAlvaro Muñoz <alvaro@pwntester.com>2020-02-26 20:22:14 +0100
committerGitHub <noreply@github.com>2020-02-26 20:22:14 +0100
commitad745f9da289a56035b8c759cc8fac1b40a44558 (patch)
treed7ccdb603c4665fed5ed627de4cfeb714b1000c1 /runtime/lua/vim/lsp/buf.lua
parentca8699378c765017575c102f3da8347833159a6c (diff)
downloadrneovim-ad745f9da289a56035b8c759cc8fac1b40a44558.tar.gz
rneovim-ad745f9da289a56035b8c759cc8fac1b40a44558.tar.bz2
rneovim-ad745f9da289a56035b8c759cc8fac1b40a44558.zip
add support to show diagnostics count in statusline (#11641)
* add support to show diagnostics count in statusline * documentation
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
-rw-r--r--runtime/lua/vim/lsp/buf.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua
index 52fa2ec93b..82aeccd4db 100644
--- a/runtime/lua/vim/lsp/buf.lua
+++ b/runtime/lua/vim/lsp/buf.lua
@@ -23,6 +23,10 @@ local function request(method, params, callback)
return vim.lsp.buf_request(0, method, params, callback)
end
+function M.server_ready()
+ return not not vim.lsp.buf_notify(0, "window/progress", {})
+end
+
function M.hover()
local params = util.make_position_params()
request('textDocument/hover', params)