chore(nvim): strip whitespace in bash

This commit is contained in:
Rob Watson 2023-11-13 08:52:01 +01:00
parent 56c6370a73
commit a30fefbe36
1 changed files with 1 additions and 1 deletions

2
nvimrc
View File

@ -105,7 +105,7 @@ augroup vimrc
" https://github.com/fatih/vim-go/issues/1757#issuecomment-565130503
autocmd FileType qf if (getwininfo(win_getid())[0].loclist != 1) | wincmd J | endif
" Remove trailing whitespace pre-save:
autocmd FileType go,ruby,markdown,rust,python,markdown,lua,sql autocmd BufWritePre <buffer> silent! %s/\s\+$//e
autocmd FileType go,ruby,markdown,rust,python,markdown,lua,sql,bash autocmd BufWritePre <buffer> silent! %s/\s\+$//e
augroup end
" Don't remember the current directory for a given file: