diff options
author | tdro <tdro@users.noreply.github.com> | 2021-03-01 23:31:03 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2021-03-01 23:32:51 -0500 |
commit | 27d0982dae6bdc8a8129564f340bae35d119d2b3 (patch) | |
tree | 2b99e987ba4aa6e5a6cfdb5afceb822d4e8d5fc3 | |
parent | a79f67b0d7520f7fe854b75471d5c24dc9bfebac (diff) | |
download | dotfiles-27d0982dae6bdc8a8129564f340bae35d119d2b3.tar.gz dotfiles-27d0982dae6bdc8a8129564f340bae35d119d2b3.tar.bz2 dotfiles-27d0982dae6bdc8a8129564f340bae35d119d2b3.zip |
.vimrc: Lint json
-rw-r--r-- | .config/nixpkgs/config.nix | 5 | ||||
-rw-r--r-- | .vimrc | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.config/nixpkgs/config.nix b/.config/nixpkgs/config.nix index d509b00..d8d10d9 100644 --- a/.config/nixpkgs/config.nix +++ b/.config/nixpkgs/config.nix @@ -286,10 +286,11 @@ in paths = [ nodejs-14_x unstable.deno - nodePackages.prettier + nodePackages.bower2nix nodePackages.eslint + nodePackages.jsonlint nodePackages.node2nix - nodePackages.bower2nix + nodePackages.prettier ]; pathsToLink = [ "/bin" ]; }; @@ -313,6 +313,7 @@ augroup AutoCommands autocmd FileType bash,sh autocmd! BufWritePost <buffer> :call ShellCheck() autocmd FileType nix autocmd! BufWritePost <buffer> silent call NixCheck() autocmd FileType elixir autocmd! BufWritePost <buffer> :call ElixirFormat() + autocmd FileType json autocmd! BufWritePost <buffer> silent !notify-send "$(jsonlint -i % 2>&1 && echo 'json OK: %')" autocmd FileType css autocmd! BufWritePost <buffer> silent !notify-send "$(prettier --write --parser css % 2>&1)" autocmd FileType rust autocmd! BufWritePost <buffer> silent !notify-send "$(rustfmt % 2>&1 && echo 'rustfmt OK: %')" autocmd FileType c autocmd! BufWritePost <buffer> silent !notify-send "$(clang-format -i % 2>&1 && echo 'clang-format OK: %')" |