Skip to content

Commit

Permalink
Fix use of vim.lsp.diagnostic.get_count
Browse files Browse the repository at this point in the history
  • Loading branch information
wbthomason committed Nov 13, 2020
1 parent 3131f54 commit 9750f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lsp-status/diagnostics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local function get_all_diagnostics()
}

for k, level in pairs(levels) do
result[k] = vim.lsp.diagnostic.get_count(level)
result[k] = vim.lsp.diagnostic.get_count(0, level)
end

return result
Expand Down

0 comments on commit 9750f45

Please sign in to comment.