diff --git a/.config/nvim/lua/statusline.lua b/.config/nvim/lua/statusline.lua index 88d438a..6d21c4e 100644 --- a/.config/nvim/lua/statusline.lua +++ b/.config/nvim/lua/statusline.lua @@ -99,7 +99,7 @@ local function get_mode_color(m) end -- from https://github.com/nvim-lua/lsp-status.nvim/blob/master/lua/lsp-status/diagnostics.lua -local function get_lsp_diagnostics(bufnr) +local function get_lsp_diagnostics() local result = {} local levels = { errors = "Error", @@ -110,7 +110,7 @@ local function get_lsp_diagnostics(bufnr) for k, level in pairs(levels) do local count = 0 - local diags = vim.diagnostic.get(bufnr, { severity = level }) + local diags = vim.diagnostic.get(0, { severity = level }) for _, _ in pairs(diags) do count = count + 1 end