docs: added diagnostics docs to lualine.txt(#111)
This commit is contained in:
parent
3ae9a2a483
commit
1c44781835
|
@ -157,16 +157,17 @@ Lualine defaults~
|
|||
Available components~
|
||||
|
||||
general~
|
||||
* branch
|
||||
* encoding
|
||||
* fileformat
|
||||
* branch (git branch)
|
||||
* diagnostics (diagnostics count from your prefered source)
|
||||
* encoding (file encoding)
|
||||
* fileformat (file format)
|
||||
* filename
|
||||
* filetype
|
||||
* location
|
||||
* mode
|
||||
* progress
|
||||
* location (location in file in line:column format)
|
||||
* mode (vim mode)
|
||||
* progress (%progress in file)
|
||||
plugin~
|
||||
* signify
|
||||
* signify (signify status)
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
@ -271,6 +272,30 @@ Component specific options~
|
|||
These options are available for specific components only.
|
||||
List of options are given below.
|
||||
|
||||
|
||||
• diagnostics~
|
||||
• sources (nil)
|
||||
displays diagnostic count from defined source.
|
||||
array containing one or many string from set
|
||||
{'nvim_lsp', 'coc', 'ale'}
|
||||
|
||||
• sections ({'error', 'warn', 'info'})
|
||||
displays diagnostics of defined severity.
|
||||
array containing one or many string from set
|
||||
{'error', 'warn', 'info'}
|
||||
|
||||
• color_error (DiffDelete foreground color)
|
||||
changes diagnostic's error section foreground color.
|
||||
color in #rrggbb format
|
||||
|
||||
• color_warn (DiffText foreground color)
|
||||
changes diagnostic's warn section foreground color
|
||||
color in #rrggbb format
|
||||
|
||||
• color_info (Normal foreground color)
|
||||
changes diagnostic's info section foreground color
|
||||
color in #rrggbb format
|
||||
|
||||
• filename~
|
||||
• file_status (true)
|
||||
Whether to display filemodified status in filename
|
||||
|
@ -287,18 +312,17 @@ List of options are given below.
|
|||
are automaticaly extracted from colorscheme . If you
|
||||
want to change any of those you can use options given below.
|
||||
|
||||
|
||||
• signify~
|
||||
• colored (true)
|
||||
Whether to show colors
|
||||
|
||||
• color_added ('#90ee90')
|
||||
• color_added (DiffAdd foreground color)
|
||||
Foreground color of added section
|
||||
|
||||
• color_modified ('#f0e130')
|
||||
• color_modified (DiffChange foreground color)
|
||||
Foreground color of modified section
|
||||
|
||||
• color_removed ('#ff0038')
|
||||
• color_removed (DiffDelete foreground color)
|
||||
Foreground color of removed section
|
||||
|
||||
Example:~
|
||||
|
|
Loading…
Reference in New Issue