Skip to content

Isrothy/lualine-diagnostic-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

lualine-diagnostic-message

Show LSP diagnostic message on lualine

Screenshot

image

Installation

packer.nvim

use 'Isrothy/lualine-diagnostic-message'

lazy

{
    "nvim-lualine/lualine.nvim",
    dependencies = {
      "nvim-tree/nvim-web-devicons",
      "Isrothy/lualine-diagnostic-message",  -- Add it to dependencies
    }
}

Use

require'lualine'.setup{
    sections = {
        lualine_c = {
            "diagnostic-message",
            --- Or
            {
                "diagnostic-message",
                --- If you want to customize the colors
                colors = {
                    error = "#BF616A",
                    warn = "#EBCB8B",
                    info = "#A3BE8C",
                    hint = "#88C0D0",
                },
                --- If you want to customize 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,
            }
        }
    }
}

About

Lualine component to show lsp diagnostic message

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages