add support to show diagnostics count in statusline (#11641)

* add support to show diagnostics count in statusline
* documentation
This commit is contained in:
Alvaro Muñoz
2020-02-26 20:22:14 +01:00
committed by GitHub
parent ca8699378c
commit ad745f9da2
5 changed files with 61 additions and 9 deletions

View File

@@ -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)