From 27d0982dae6bdc8a8129564f340bae35d119d2b3 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 1 Mar 2021 23:31:03 -0500 Subject: .vimrc: Lint json --- .vimrc | 1 + 1 file changed, 1 insertion(+) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 45c0245..2902612 100644 --- a/.vimrc +++ b/.vimrc @@ -313,6 +313,7 @@ augroup AutoCommands autocmd FileType bash,sh autocmd! BufWritePost :call ShellCheck() autocmd FileType nix autocmd! BufWritePost silent call NixCheck() autocmd FileType elixir autocmd! BufWritePost :call ElixirFormat() + autocmd FileType json autocmd! BufWritePost silent !notify-send "$(jsonlint -i % 2>&1 && echo 'json OK: %')" autocmd FileType css autocmd! BufWritePost silent !notify-send "$(prettier --write --parser css % 2>&1)" autocmd FileType rust autocmd! BufWritePost silent !notify-send "$(rustfmt % 2>&1 && echo 'rustfmt OK: %')" autocmd FileType c autocmd! BufWritePost silent !notify-send "$(clang-format -i % 2>&1 && echo 'clang-format OK: %')" -- cgit v1.2.3