Deleted a bunch of stuff I didn't need from nvim config

This commit is contained in:
2025-07-30 16:31:00 +03:00
parent f1aaab0169
commit fc6d846a0c
21 changed files with 47 additions and 157 deletions

View File

@@ -30,8 +30,11 @@ return {
-- Might be unrelated tho
-- Oil error is "cannot save, action already in progress"
-- Save only if the buffer is not a "special buffer"
return vim.fn.getbufvar(buf, '&buftype') == ''
local buftype = vim.fn.getbufvar(buf, '&buftype')
local filetype = vim.bo[buf].filetype
-- Don't autosave special buffers or Oil buffers
return buftype == '' and filetype ~= 'oil'
end,
}
end,