aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-12-06 21:39:35 -0500
committertdro <tdro@users.noreply.github.com>2020-12-06 21:39:35 -0500
commit49bce64ce9bfc6741a4b4912e4dbc5c26a4a179f (patch)
treeb38caff87583b4bd7a46f31de93594e2bb3c127c /.vimrc
parent2b91d8708e9beedb72df062ebd7d740dad974307 (diff)
downloaddotfiles-49bce64ce9bfc6741a4b4912e4dbc5c26a4a179f.tar.gz
dotfiles-49bce64ce9bfc6741a4b4912e4dbc5c26a4a179f.tar.bz2
dotfiles-49bce64ce9bfc6741a4b4912e4dbc5c26a4a179f.zip
.vimrc: Function notify consistency
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/.vimrc b/.vimrc
index 5a2a6cd..545a822 100644
--- a/.vimrc
+++ b/.vimrc
@@ -88,28 +88,28 @@ set guioptions-=e " Remove tab bar in GUI.
" PHP Fixer
function! PHPFix()
- :silent !notify-send "$(phpcbf % 2>&1)"
+ :silent !notify-send -t 10000 "$(phpcbf % 2>&1)" > /dev/null 2>&1
:redraw!
endfunction
" ESLint Fix
function! ESLintFix()
- :silent !notify-send -t 10000 "$(eslint -c $HOME/.config/eslintrc.yml --fix %)" > /dev/null 2>&1
+ :silent !notify-send -t 10000 "$(eslint -c $HOME/.config/eslintrc.yml --fix % 2>&1)" > /dev/null 2>&1
endfunction
" Ansible Check
function! AnsibleCheck()
- :silent !notify-send -t 10000 "$(ansible-playbook --syntax-check % 2>&1)" &
+ :silent !notify-send -t 10000 "$(ansible-playbook --syntax-check % 2>&1)" > /dev/null 2>&1 &
endfunction
" Shell Check
function! ShellCheck()
- :silent !notify-send -t 10000 "$(shellcheck -x --exclude=SC1090,SC1091 % && echo 'Shellcheck OK: %')" > /dev/null 2>&1 &
+ :silent !notify-send -t 10000 "$(shellcheck -x --exclude=SC1090,SC1091 % 2>&1 && echo 'Shellcheck OK: %')" > /dev/null 2>&1 &
endfunction
" Nix Check
function! NixCheck()
- :silent !notify-send -t 10000 "$(nix-linter % 2>&1 && echo 'Nix Lint OK: %' && nixfmt %)" > /dev/null 2>&1
+ :silent !notify-send -t 10000 "$(nix-linter % 2>&1 && echo 'Nix Lint OK: %' && nixfmt % 2>&1)" > /dev/null 2>&1
:redraw!
endfunction