This plugin provides indicator for trailing whitespace for the lightline vim plugin.
Install using a plugin manager of your choice, for example:
call dein#add('maximbaz/lightline-trailing-whitespace')
- Register the component:
let g:lightline.component_expand = {'trailing': 'lightline#trailing_whitespace#component'}
- Set color to the component (use
warning
orerror
):
let g:lightline.component_type = {'trailing': 'error'}
- Add the component to the lightline, for example to the right side:
let g:lightline.active = { 'right': [[ 'trailing' ]] }
The indicator to use when there are trailing whitespace. Default is trailing
.
If you are a fan of unicode characters, here's a good one to use: •
Released under the MIT License