diff options
Diffstat (limited to 'programs/nvim.nix')
-rw-r--r-- | programs/nvim.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/programs/nvim.nix b/programs/nvim.nix index d903c4d..6ce3e7b 100644 --- a/programs/nvim.nix +++ b/programs/nvim.nix @@ -108,11 +108,9 @@ pkgs.neovim.override { autocmd BufWritepre * %s/\n\+\%$//e " When shortcut files are updated, renew bash and ranger configs with new material: - autocmd BufWritePost files,directories !shortcuts + autocmd BufWritePost bm-files,bm-dirs !shortcuts " Run xrdb whenever Xdefaults or Xresources are updated. - autocmd BufWritePost *Xresources,*Xdefaults !xrdb % - " Update binds when sxhkdrc is updated. - autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd + autocmd BufWritePost *Xresources,*Xdefaults,*xresources,*xdefaults !xrdb % " Turns off highlighting on the bits of code that are changed, so the line that is changed is highlighted but the actual text that has changed stands out on the line and is readable. if &diff |