Remove useless call in lsp part

This commit is contained in:
Olivier Roques
2020-12-26 10:44:38 +01:00
parent 63594c914c
commit d9993f23ca

View File

@@ -1,7 +1,6 @@
local lsp, vim = vim.lsp, vim
local lsp = vim.lsp
local function get_diagnostic(prefix, severity)
if vim.tbl_isempty(lsp.buf_get_clients(0)) then return '' end
local count = lsp.diagnostic.get_count(0, severity)
if count < 1 then return '' end
return string.format('%s:%d', prefix, count)