# HG changeset patch # User Meredith Howard # Date 1714934755 18000 # Node ID 9a19621f294c587c54c4ca81efc24ba0d535cced # Parent 0e7310186a5747808ed2f8a2cc9c165c523f18c7 Clean up stray swapfiles too diff --git a/.config/nvim/lua/config/autocmds.lua b/.config/nvim/lua/config/autocmds.lua --- a/.config/nvim/lua/config/autocmds.lua +++ b/.config/nvim/lua/config/autocmds.lua @@ -54,6 +54,7 @@ end) -- >> Prune old backup and undo files at startup autocmd(g, "User", "VeryLazy", function() local prune_files = require("config.util").prune_files + if vim.go.swapfile then prune_files(vim.go.directory, 90) end if vim.go.backup then prune_files(vim.go.backupdir, 90) end if vim.go.undofile then prune_files(vim.go.undodir, 90) end end)