diff --git a/glasshouse-desktop/dotfiles/packages/nixvim/config/autocmd.nix b/glasshouse-desktop/dotfiles/packages/nixvim/config/autocmd.nix index 21f7234..70695fd 100644 --- a/glasshouse-desktop/dotfiles/packages/nixvim/config/autocmd.nix +++ b/glasshouse-desktop/dotfiles/packages/nixvim/config/autocmd.nix @@ -5,5 +5,15 @@ event = [ "VimEnter" ]; pattern = [ "*" ]; } + { + command = "silent! mkview"; + event = [ "BufWinLeave" ]; + pattern = [ "*" ]; + } + { + command = "silent! loadview"; + event = [ "BufWinEnter" ]; + pattern = [ "*" ]; + } ]; }