From b3bd9ff5c9ad4cb7c785f5a56ce4d3f3208e23d7 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sun, 22 Nov 2020 10:53:48 +0100 Subject: Update --- programs/nvim.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'programs/nvim.nix') 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 -- cgit 1.4.1