Skip to content

maximbaz/lightline-trailing-whitespace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightline-trailing-whitespace

This plugin provides indicator for trailing whitespace for the lightline vim plugin.

screenshot

Table Of Contents

Installation

Install using a plugin manager of your choice, for example:

call dein#add('maximbaz/lightline-trailing-whitespace')

Integration

  1. Register the component:
let g:lightline.component_expand = {'trailing': 'lightline#trailing_whitespace#component'}
  1. Set color to the component (use warning or error):
let g:lightline.component_type = {'trailing': 'error'}
  1. Add the component to the lightline, for example to the right side:
let g:lightline.active = { 'right': [[ 'trailing' ]] }

Configuration

g:lightline#trailing_whitespace#indicator

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:

License

Released under the MIT License

About

A trailing whitespace component for the lightline vim plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published