The complete windows feel

This commit is contained in:
inorishio
2026-02-13 11:10:09 +01:00
parent ce4238004b
commit 9c871ccf40
32 changed files with 186 additions and 390 deletions
+19
View File
@@ -21,3 +21,22 @@ autocmd("BufWritePre", {
vim.cmd "Neoformat"
end,
})
-- fWindows
autocmd("VimLeavePre", {
group = vim.api.nvim_create_augroup('fuck_shada_temp', { clear = true }),
pattern = { '*' },
callback = function()
local status = 0
for _, f in ipairs(vim.fn.globpath(vim.fn.stdpath('data') .. '/shada', '*tmp*', false, true)) do
if vim.tbl_isempty(vim.fn.readfile(f)) then
status = status + vim.fn.delete(f)
end
end
if status ~= 0 then
vim.notify('Could not delete empty temporary ShaDa files.', vim.log.levels.ERROR)
vim.fn.getchar()
end
end,
desc = "Delete empty temp ShaDa files"
})