We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54c3952 commit 745ba61Copy full SHA for 745ba61
lua/lsp-status/statusline.lua
@@ -76,7 +76,7 @@ end
76
77
local function get_lsp_statusline(bufnr)
78
bufnr = bufnr or 0
79
- if #vim.lsp.buf_get_clients(bufnr) == 0 then return '' end
+ if vim.tbl_count(vim.lsp.buf_get_clients(bufnr)) == 0 then return '' end
80
local buf_diagnostics = config.diagnostics and diagnostics(bufnr) or nil
81
local only_hint = true
82
local some_diagnostics = false
0 commit comments