Skip to content

Commit 07e3934

Browse files
authored
Merge pull request #18 from babariviere/fix-deprecated
Fix deprecation warning on buf_diagnostics_count
2 parents e1a2694 + 50d4ba1 commit 07e3934

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)