From 2763011c2cb713850f22f157d8a4291eb29686eb Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 5 Feb 2023 23:32:21 -0500 Subject: .vim/vimrc: Invoke vale from markdown file type --- .vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/vimrc b/.vim/vimrc index 865094c..f9d6406 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -286,6 +286,7 @@ augroup AutoCommands autocmd BufWritePost .vimrc,vimrc source % | Notify('printf "Configuration sourced."') " Linting file type post write commands. + autocmd FileType markdown autocmd! BufWritePost :only | :term ++rows=10 sh -c "cat % | vale --ext .md" autocmd FileType css autocmd! BufWritePost exe 'Notify(''prettier --write --parser css ' . expand('%') . ' 2>&1'')' | :e autocmd FileType html autocmd! BufWritePost exe 'Notify(''prettier --write --parser html ' . expand('%') . ' 2>&1'')' | :e autocmd FileType python autocmd! BufWritePost exe 'Notify(''black ' . expand('%') . ' 2>&1 && pylint ' . expand('%') . ' 2>&1'')' | :e @@ -310,7 +311,6 @@ augroup AutoCommands autocmd FileType sql autocmd! BufWritePost exe 'Notify(''sqlint ' . expand('%') . ' 2>&1 && pg_format --type-case 2 --inplace ' . expand('%') . ' 2>&1 && sqlfluff lint --exclude-rules L003,L016 --dialect postgres ' . expand('%') . ' 2>&1 && printf "SQL OK: ' . expand('%') . '"'')' | :e " Linting extension post write commands. - autocmd BufWritePost *.txt,*.md :only | :term ++rows=10 vale % autocmd BufWritePost $HOME/.config/chromexup/config.ini exe 'Notify(''chromexup 2>&1'')' autocmd BufWritePost rc.lua exe 'Notify(''awesome -k 2>&1'')' autocmd BufWritePost quotes,*.fortune exe 'Notify(''strfile ' . expand('%') . ''')' -- cgit v1.2.3