From d400ad59869b2cad49d3030ae4c65c86d1812508 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 3 Jun 2023 13:08:25 -0400 Subject: [PATCH] neovim: Don't save folds by default It may be better to open files normally and have the option to manually save/load views for predictability. --- terminal/neovim/default.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/terminal/neovim/default.nix b/terminal/neovim/default.nix index 7d1d5221..87f1dd31 100644 --- a/terminal/neovim/default.nix +++ b/terminal/neovim/default.nix @@ -54,13 +54,6 @@ autocmd BufNewFile,BufRead *.ecr setlocal syntax=html autocmd BufWritePre,FileWritePre * silent! call mkdir(expand(':p:h'), 'p') - - " Automatically save location/folds/etc. when re-opening files - augroup remember_folds - autocmd! - autocmd BufWinLeave * mkview - autocmd BufWinEnter * silent! loadview - augroup END ''; plugins = with pkgs.vimPlugins; [ {