diff options
author | tdro <tdro@users.noreply.github.com> | 2022-09-07 05:02:07 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2022-09-07 05:02:07 -0400 |
commit | ddaf28d8466020eda849cc47855af1d6dc24881f (patch) | |
tree | b55eecebb26bd5b87b19d8a234f47cf7eff077ab | |
parent | 3c0457ace430d111dcf474dde59d904122c72f1d (diff) | |
download | dotfiles-ddaf28d8466020eda849cc47855af1d6dc24881f.tar.gz dotfiles-ddaf28d8466020eda849cc47855af1d6dc24881f.tar.bz2 dotfiles-ddaf28d8466020eda849cc47855af1d6dc24881f.zip |
.vim/vimrc: Add bind zone check
-rw-r--r-- | .vim/vimrc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -302,6 +302,7 @@ augroup AutoCommands autocmd FileType nix autocmd! BufWritePost <buffer> exe 'Notify(''nix-linter ' . expand('%') . ' 2>&1 && printf "Nix Lint OK: ' . expand('%') . '"' . ' && nixfmt ' . expand('%') . ' 2>&1' . ''')' | :e autocmd FileType tex autocmd! BufWritePost <buffer> exe 'Notify(''latexindent ' . expand('%') . ' 2>&1 && printf "LaTeX OK: ' . expand('%') . '"'')' | :e | :only | :term ++close ++rows=10 latex-compile % autocmd FileType awk autocmd! BufWritePost <buffer> exe 'Notify(''awk -g -f ' . expand('%') . ' 2>&1 && awk -o- -f ' . expand('%') . ' | sponge ' . expand('%') . ' && printf "AWK OK: ' . expand('%') . '"'')' | :e + autocmd FileType bindzone autocmd! BufWritePost <buffer> exe 'Notify(''file="' . expand('%') . '" && named-checkzone "$(head --lines=1 "$file" | cut --delimiter=" " --fields=2 | perl -ple "chop")" $file'')' | :e autocmd FileType yaml autocmd! BufWritePost <buffer> exe 'Notify(''yaml round-trip --indent 2 --save ' . expand('%') . ' 2>&1 && yamllint -s ' . expand('%') . ' 2>&1 && printf "YAML OK: ' . expand('%') . '"'')' | :e autocmd FileType typescript autocmd! BufWritePost <buffer> exe 'Notify(''deno fmt ' . expand('%') . ' 2>&1 && NO_COLOR=true deno lint ' . expand('%') . ' 2>&1'')' | :e | :only | :term ++rows=10 deno run --config tsconfig.json --allow-all --location https://example.com/ % autocmd FileType sql autocmd! BufWritePost <buffer> exe 'Notify(''sqlint ' . expand('%') . ' 2>&1 && pg_format -i ' . expand('%') . ' 2>&1 && sqlfluff lint --exclude-rules L003,L016 --dialect postgres ' . expand('%') . ' 2>&1 && printf "SQL OK: ' . expand('%') . '"'')' | :e |