Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(format): for "attempt to index local 'signs' (a boolean value)" errors in nvim-0.10.1+ #579

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/trouble/format.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ M.formatters = {
signs = signs(0, 0) --[[@as vim.diagnostic.Opts.Signs]]
end
return {
text = signs.text and signs.text[severity] or sign and sign.text or name:sub(1, 1),
text = type(signs) == "table" and signs.text and signs.text[severity] or sign and sign.text or name:sub(1, 1),
hl = "DiagnosticSign" .. name,
}
else
Expand Down
Loading