diff --git a/templates/logrotate/logrotate.conf.gotmpl b/templates/logrotate/logrotate.conf.gotmpl index 89d39c0..604e9c1 100644 --- a/templates/logrotate/logrotate.conf.gotmpl +++ b/templates/logrotate/logrotate.conf.gotmpl @@ -5,3 +5,11 @@ notifempty copytruncate } + +{{ env "XDG_STATE_HOME" | printf "%s/nvim/log" }} {{ env "XDG_STATE_HOME" | printf "%s/nvim/*.log" }} { + rotate 3 + size 10M + nocompress + notifempty + copytruncate +}