From b61b7033722c725e4a39f7ce860dd74496687633 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Sun, 9 Oct 2022 17:44:23 +0200 Subject: [PATCH] chore: automatically apply changes to chezmoi files --- private_dot_config/nvim/init.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/private_dot_config/nvim/init.vim b/private_dot_config/nvim/init.vim index acb073c..23bb927 100644 --- a/private_dot_config/nvim/init.vim +++ b/private_dot_config/nvim/init.vim @@ -73,6 +73,9 @@ set iskeyword-=# " '#' is an end of word designator set iskeyword-=- " '-' is an end of word designator set cmdheight=2 " Better display for messages + + " apply changes to chezmoi files automatically + autocmd BufWritePost ~/.local/share/chezmoi/* ! chezmoi apply --source-path "%" " } " AutoRestart {