From 6386d8fd93e0f8ba1c04fc31ca64a7cbe7b9eed5 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 2 Mar 2023 09:56:30 -0600 Subject: [PATCH] fix(nvim): no longer save folds This caused all files to open as fully folded --- .../primary/config/lua/core/autocmds.lua | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/dots/.nvim-environments/primary/config/lua/core/autocmds.lua b/dots/.nvim-environments/primary/config/lua/core/autocmds.lua index b2b96f79..4ad4797c 100644 --- a/dots/.nvim-environments/primary/config/lua/core/autocmds.lua +++ b/dots/.nvim-environments/primary/config/lua/core/autocmds.lua @@ -12,20 +12,6 @@ M.setup = function() vim.api.nvim_create_autocmd("BufWritePre", { 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 return M