Skip to content

Commit 50d4ba1

Browse files
committed
fix deprecation warning on buf_diagnostics_count
1 parent e1a2694 commit 50d4ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lsp-status/diagnostics.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local function get_all_diagnostics()
99
}
1010

1111
for k, level in pairs(levels) do
12-
result[k] = vim.lsp.util.buf_diagnostics_count(level)
12+
result[k] = vim.lsp.diagnostic.get_count(level)
1313
end
1414

1515
return result

0 commit comments

Comments
 (0)