Skip to content

Commit c5d2264

Browse files
authored
fix(diagnostic): text is nil (#1295)
1 parent 396ff81 commit c5d2264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neo-tree/sources/common/components.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ local function get_defined_sign(severity)
8888
identifier = "N"
8989
end
9090
defined = {
91-
text = signs_config.text[vim.diagnostic.severity[identifier]],
91+
text = (signs_config.text or {})[vim.diagnostic.severity[identifier]],
9292
texthl = "DiagnosticSign" .. severity,
9393
}
9494
end

0 commit comments

Comments
 (0)