Skip to content

Palpatineli/lightline-lsc-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lightline-lsc-nvim

This plugin provides LanguageClient-neovim status indicator for lightline.

In many ways, this is a conversion of lightline-ale to work with LanguageClient-neovim.

Missing functions

This plugin does not tell the difference between warning and errors, as LanguageClient-neovim doesn't seem to have that query function...

Installation

call dein#add('palpatineli/lightline-lsc-nvim')

Dependency

autozimu/LanguageClient-neovim

and

itchyny/lightline.vim

obviously.

Configuration

Create lightline components

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',
      \ }

Set component colors

let g:lightline.component_type = {
      \     'linter_checking': 'left',
      \     'linter_warnings': 'warning',
      \     'linter_errors': 'error',
      \     'linter_ok': 'left',
      \ }

Add the created components to lightline

let g:lightline.active = { 'right': [[ 'linter_checking', 'linter_errors', 'linter_warnings', 'linter_ok' ]] }

Icons for indicators

g:lightline#ale#indicator_checking

The indicator to use when ALE is in progress. Default is Linting....

g:lightline#ale#indicator_notstarted

The indicator to use when the server is not started. Default is Starting....

g:lightline#ale#indicator_errors

The indicator to use when there are errors. Default is E:.

g:lightline#ale#indicator_ok

The indicator to use when there are no warnings or errors. Default is OK.

Using icons as indicators

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"

About

integration of LanguageClient-neovim with lightline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published