.config/nvim/lua/config/autocmds.lua

changeset 1159
9a19621f294c
parent 1157
a237720efee9
child 1161
2543467f42da
equal deleted inserted replaced
1158:0e7310186a57 1159:9a19621f294c
52 end) 52 end)
53 53
54 -- >> Prune old backup and undo files at startup 54 -- >> Prune old backup and undo files at startup
55 autocmd(g, "User", "VeryLazy", function() 55 autocmd(g, "User", "VeryLazy", function()
56 local prune_files = require("config.util").prune_files 56 local prune_files = require("config.util").prune_files
57 if vim.go.swapfile then prune_files(vim.go.directory, 90) end
57 if vim.go.backup then prune_files(vim.go.backupdir, 90) end 58 if vim.go.backup then prune_files(vim.go.backupdir, 90) end
58 if vim.go.undofile then prune_files(vim.go.undodir, 90) end 59 if vim.go.undofile then prune_files(vim.go.undodir, 90) end
59 end) 60 end)
60 61

mercurial