LSP diagnostics verify attached client

main
bhagwan 3 years ago
parent 49c1e2f1ea
commit 4ec3f7716c

@ -290,6 +290,12 @@ end
M.diagnostics = function(opts)
opts = normalize_lsp_opts(opts, config.lsp)
local lsp_clients = vim.lsp.buf_get_clients(0)
if #lsp_clients == 0 then
utils.info("LSP: no client attached")
return
end
local lsp_type_diagnostic = vim.lsp.protocol.DiagnosticSeverity
local current_buf = vim.api.nvim_get_current_buf()

Loading…
Cancel
Save