diff options
-rw-r--r-- | .bashrc | 1 | ||||
-rwxr-xr-x | .local/bin/vale-wrapper | 2 | ||||
-rw-r--r-- | .vimrc | 1 |
3 files changed, 3 insertions, 1 deletions
@@ -100,7 +100,6 @@ alias sh='dash' alias tidy='tidy -config $HOME/.config/tidy.conf' alias wavemon='sudo wavemon' alias wget='wget --hsts-file $HOME/.cache/wget.history' -alias vale='vale --config $XDG_CONFIG_HOME/vale/vale.ini' # nix helpers nix-which() { readlink "$(type -P "$1")"; } diff --git a/.local/bin/vale-wrapper b/.local/bin/vale-wrapper new file mode 100755 index 0000000..5efabd4 --- /dev/null +++ b/.local/bin/vale-wrapper @@ -0,0 +1,2 @@ +#!/bin/sh -eu +vale --config "$XDG_CONFIG_HOME/vale/vale.ini" "$@" @@ -289,6 +289,7 @@ augroup AutoCommands autocmd BufWritePost *.php :call PHPFix() autocmd BufWritePost *.js :call ESLintFix() autocmd BufWritePost *.yml :call AnsibleCheck() + autocmd BufWritePost *.txt,*.md :term ++rows=10 vale-wrapper % autocmd FileType bash,sh autocmd! BufWritePost <buffer> :call ShellCheck() autocmd FileType nix autocmd! BufWritePost <buffer> silent call NixCheck() autocmd FileType rust autocmd! BufWritePost <buffer> silent !notify-send "$(rustfmt % 2>&1 && echo 'rustfmt OK:' %)" |