This plugin provides LanguageClient-neovim status indicator for lightline.
In many ways, this is a conversion of lightline-ale to work with LanguageClient-neovim.
This plugin does not tell the difference between warning and errors, as LanguageClient-neovim doesn't seem to have that query function...
call dein#add('palpatineli/lightline-lsc-nvim')
autozimu/LanguageClient-neovim
and
itchyny/lightline.vim
obviously.
let g:lightline = {}
let g:lightline.component_expand = {
\ 'linter_checking': 'lightline#lsc#checking',
\ 'linter_warnings': 'lightline#lsc#warnings',
\ 'linter_errors': 'lightline#lsc#errors',
\ 'linter_ok': 'lightline#lsc#ok',
\ }
let g:lightline.component_type = {
\ 'linter_checking': 'left',
\ 'linter_warnings': 'warning',
\ 'linter_errors': 'error',
\ 'linter_ok': 'left',
\ }
let g:lightline.active = { 'right': [[ 'linter_checking', 'linter_errors', 'linter_warnings', 'linter_ok' ]] }
The indicator to use when ALE is in progress. Default is Linting...
.
The indicator to use when the server is not started. Default is Starting...
.
The indicator to use when there are errors. Default is E:
.
The indicator to use when there are no warnings or errors. Default is OK
.
The recommended icons (if you are using a nerd font)
let g:lightline#lsc#indicator_checking = "\uf110"
let g:lightline#lsc#indicator_notstarted = "\ufbab"
let g:lightline#lsc#indicator_errors = "\uf05e"
let g:lightline#lsc#indicator_ok = "\uf00c"