nvim: Switch to better-whitespace

Might be better as it is faster for the common case. See comment,
https://github.com/axelf4/vim-strip-trailing-whitespace/issues/2#issuecomment-573422150
This commit is contained in:
Sanchayan Maity 2020-10-08 11:10:25 +05:30
parent 3e49faa46d
commit 84a5ec8ee9
2 changed files with 6 additions and 1 deletions

View file

@ -9,7 +9,7 @@ Plug 'PeterRincker/vim-searchlight'
Plug 'wincent/ferret' Plug 'wincent/ferret'
Plug 'lambdalisue/reword.vim' Plug 'lambdalisue/reword.vim'
" Remove extraneous whitespace when edit mode is exited " Remove extraneous whitespace when edit mode is exited
Plug 'axelf4/vim-strip-trailing-whitespace' Plug 'ntpeters/vim-better-whitespace'
" Manage Project sessions " Manage Project sessions
Plug 'thaerkh/vim-workspace' Plug 'thaerkh/vim-workspace'
" For autocompletion " For autocompletion

View file

@ -1,3 +1,8 @@
" Better whitespace
let g:better_whitespace_enabled = 1
let g:strip_whitespace_on_save = 1
let g:better_whitespace_operator = ''
let g:strip_whitespace_confirm = 0
" Automatically detect style file and apply style to formatting " Automatically detect style file and apply style to formatting
let g:clang_format#detect_style_file = 1 let g:clang_format#detect_style_file = 1
" For workspace " For workspace