Replies: 1 comment
-
You're looking at the renderer for nodes that are directories: renderers = {
directory = { Your screenshot displays a node for a file. If you want to only show files with errors: renderers = {
file = {
{ "indent" },
{ "icon" },
{
"container",
content = {
{
"name",
zindex = 10
},
{
"symlink_target",
zindex = 10,
highlight = "NeoTreeSymbolicLinkTarget",
},
{ "clipboard", zindex = 10 },
{ "bufnr", zindex = 10 },
{ "modified", zindex = 20, align = "right" },
{ "diagnostics", zindex = 20, align = "right", errors_only = true }, -- every other line copy-pasted from defaults
{ "git_status", zindex = 10, align = "right" },
{ "file_size", zindex = 10, align = "right" },
{ "type", zindex = 10, align = "right" },
{ "last_modified", zindex = 10, align = "right" },
{ "created", zindex = 10, align = "right" },
},
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From the help I found the following paragraph about the diagnostics display:
What is meant with "display the highest severity level for files" ? Highest severity in relation to what? I don't understand it really.
In the defaults.lua I can see the following code that was mentioned in #853
especially the line
What exactly is the purpose of
errors_only
and what is it supposed to do? It seems like it will show errors only and other diagnostics are hidden? But for me that is is not really in line with what the help is saying in the quote above.Can you help me understand what is the purpose of this flag and how in general the diagnostics are supposed to behave?
I am trying to figure this out, because I want only errors to be shown, but on my system it shows errors and warnings.
The severity level for the given line is '2':
Beta Was this translation helpful? Give feedback.
All reactions