From d9993f23ca8c26de3536fd9b518b7c3da92d718c Mon Sep 17 00:00:00 2001 From: Olivier Roques Date: Sat, 26 Dec 2020 10:44:38 +0100 Subject: [PATCH] Remove useless call in lsp part --- lua/hardline/parts/lsp.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/hardline/parts/lsp.lua b/lua/hardline/parts/lsp.lua index 797d490..960ea63 100644 --- a/lua/hardline/parts/lsp.lua +++ b/lua/hardline/parts/lsp.lua @@ -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)