Error line in mini.statusline #1493
-
Contributing guidelines
Module(s)mini.statusline QuestionHy, i am new here. I would like to know if there is a way to see where errors are in a file in my statusline (for example, line of the first error). As i understand it right now "E4" means there are 4 errors, but on top of that I would like to know if I can see the actual lines. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Welcome!
Correct, here is the description.
It is possible in theory, but I wouldn't recommend having that. Statusline content is meant to be quickly executed and making that information available quickly is not entirely straightforward (requires caching data inside a dedicated What I would recommend is to use a dedicated mapping that navigates to the first error (or any diagnostic in general) in the current buffer. You can do that with 'mini.bracketed' and its
|
Beta Was this translation helpful? Give feedback.
Welcome!
Correct, here is the description.
It is possible in theory, but I wouldn't recommend having that. Statusline content is meant to be quickly executed and making that information available quickly is not entirely straightforward (requires caching data inside a dedicated
DiagnosticChanged
event and then going through the process of customizing whole statusline content).What I would recommend is to use a dedicated mapping that navigates to the first error (or any diagnostic in general) in the current buffer. You can do that with 'mini.bracket…