Isrothy / lualine-diagnostic-message

Lualine component to show lsp diagnostic message
MIT License
15 stars 0 forks source link

lualine-diagnostic-message

Show LSP diagnostic message on lualine

Screenshot

image

Installation

packer.nvim

use 'Isrothy/lualine-diagnostic-message'

lazy

{
  "Isrothy/lualine-diagnostic-message",
}

Use

require'lualine'.setup{
    sections = {
        lualine_c = {
            "diagnostic-message",
            --- If you want to custoimze the colors
            colors = {
                error = "#BF616A",
                warn = "#EBCB8B",
                info = "#A3BE8C",
                hint = "#88C0D0",
            },
            --- If you want to custoimze the icons
            icons = {
                error = "E",
                warn = "W",
                info = "I",
                hint = "H",
            }
            -- Replace '\n' by the separator
            line_separator = ". ",

            -- Only show the first line of diagnostic message
            first_line_only = false,
        }
    }
}