summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2020-07-08 20:09:05 +0100
committerPeter2020-07-08 20:09:05 +0100
commit10f34831ec3d465bf82bdc045e88c5bfe6920dd0 (patch)
tree071e84b78e2b58ac85445b57a9af8acc6dcff1f7
parent495def8ca9563aee887f1c5b2349f5d32aef49f8 (diff)
downloaddotfiles-10f34831ec3d465bf82bdc045e88c5bfe6920dd0.tar.gz
dotfiles-10f34831ec3d465bf82bdc045e88c5bfe6920dd0.tar.bz2
dotfiles-10f34831ec3d465bf82bdc045e88c5bfe6920dd0.zip
Add dotfile reloads, remove indentation
-rw-r--r--.config/nvim/init.vim10
1 files changed, 6 insertions, 4 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 18587de..62eafe8 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -6,8 +6,10 @@ set number
syntax on
" Automatically deletes all trailing whitespace and newlines at end of file on save.
- autocmd BufWritePre * %s/\s\+$//e
- autocmd BufWritepre * %s/\n\+\%$//e
+autocmd BufWritePre * %s/\s\+$//e
+autocmd BufWritepre * %s/\n\+\%$//e
-" Update binds when sxhkdrc is updated.
- autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd
+" Reloads programs when config file is updated.
+autocmd BufWritePost ~/.config/sxhkd/sxhkdrc !pkill -USR1 sxhkd
+autocmd BufWritePost ~/.config/termite/config !pkill -USR1 termite
+autocmd BufWritePost ~/.config/picom/picom.conf !pkill -USR1 picom