Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/lsp-status/statusline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ end

local function get_lsp_statusline(bufnr)
bufnr = bufnr or 0
if vim.tbl_count(vim.lsp.buf_get_clients(bufnr)) == 0 then return '' end
if vim.tbl_count(vim.lsp.get_clients({bufnr = bufnr})) == 0 then return '' end
local buf_diagnostics = config.diagnostics and diagnostics(bufnr) or nil
local only_hint = true
local some_diagnostics = false
Expand Down