nvim-zh / whitespace.nvim

A nvim plugin to show and trim trailing white spaces.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

The plugin can show and remove trailing whitespaces.

Install

  • packer.nvim: use {'jdhao/whitespace.nvim', event = 'VimEnter'}
  • vim-plug: Plug 'jdhao/whitespace.nvim'

Usage

Works out of the box.

To trim trailing whitespaces, run command :StripTrailingWhitespace.

Configuration

To disable showing trailing whitespaces on certain file types, customize the variable g:trailing_whitespace_exclude_filetypes:

let g:trailing_whitespace_exclude_filetypes = ['alpha', 'git']

License

This plugin is released under the MIT License.

About

A nvim plugin to show and trim trailing white spaces.

License:MIT License


Languages

Language:Vim Script 100.0%