~emersion/dotfiles

7134db24173cbe3b5959f9e0bec4ce93de2ab1b8 — Simon Ser 2 months ago d533abc
nvim: don't automatically trim trailing whitespace

This has unfortunate consequences when working on big files with a lot
of trailing whitespace.
1 files changed, 2 insertions(+), 3 deletions(-)

M .config/nvim/init.vim
M .config/nvim/init.vim => .config/nvim/init.vim +2 -3
@@ 65,9 65,8 @@ highlight TabLineFill cterm=none
highlight TabLine cterm=none ctermfg=darkgrey ctermbg=none
highlight ColorColumn ctermbg=234 guibg=lightgrey

" Trim whitespace
let blacklist = ['md']
autocmd BufWritePre * if index(blacklist, &ft) < 0 | %s/\s\+$//e
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/

set hidden
set notimeout