Skip to content

Commit

Permalink
fix(conditions): lsp_attached
Browse files Browse the repository at this point in the history
better checking of non-empty clients table
  • Loading branch information
rebelot committed Feb 24, 2022
1 parent c3f94cd commit ed12e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/heirline/conditions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function M.has_diagnostics()
end

function M.lsp_attached()
return #vim.lsp.buf_get_clients() > 0
return next(vim.lsp.buf_get_clients()) ~= nil
end


Expand Down

0 comments on commit ed12e0f

Please sign in to comment.