fix(nvim): no longer save folds

This caused all files to open as fully folded
This commit is contained in:
Price Hiller 2023-03-02 09:56:30 -06:00
parent 55674ef60e
commit 6386d8fd93
No known key found for this signature in database

View File

@ -12,20 +12,6 @@ M.setup = function()
vim.api.nvim_create_autocmd("BufWritePre", { vim.api.nvim_create_autocmd("BufWritePre", {
command = "%s/\\s\\+$//e", command = "%s/\\s\\+$//e",
}) })
-- NOTE: Remember folds
vim.api.nvim_create_augroup("SaveFolds", { clear = true })
vim.api.nvim_create_autocmd("BufWinLeave", {
pattern = "*.*",
command = "mkview",
group = "SaveFolds"
})
vim.api.nvim_create_autocmd("BufWinEnter", {
pattern = "*.*",
command = "silent! loadview",
group = "SaveFolds"
})
end end
return M return M