lualine component for displaying the current line's most-severe diagnostic message
I was a fan of Visual Studio Code's problems.showCurrentInStatus
setting, I couldn't find a native replacement, and I
needed an afternoon project to begin understanding the Neovim/Lua/plugin system.
Install with your favorite plugin manager and add linediag
as a component in a lualine section.
The component obeys a subset of the component-specific options for the diagnostics component, namely
diagnostics_color
, symbols
, and colored
. It should eventually obey all of them (in addition to the relevant
global component settings).
Setting max_length
to an integer truncates the message at that many characters.
This component is adapted from discussion #911 in the lualine repository and based on the bundled diagnostics
component implementation.
It was originally implemented in lualine-diagnostic-message.