The plugin can show and remove trailing whitespaces.
- packer.nvim:
use {'jdhao/whitespace.nvim', event = 'VimEnter'} - vim-plug:
Plug 'jdhao/whitespace.nvim'
Works out of the box.
To trim trailing whitespaces, run command :StripTrailingWhitespace.
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']This plugin is released under the MIT License.