Only write shada when focus changes

This commit is contained in:
Oliver Hartmann 2021-11-06 13:04:20 +01:00
parent b7c97e6be0
commit 487e25bbe5

View File

@ -18,7 +18,7 @@ local autocmds = {
{ 'BufRead', '*', [[call setpos(".", getpos("'\""))]] }; { 'BufRead', '*', [[call setpos(".", getpos("'\""))]] };
}; };
save_shada = { save_shada = {
{'CursorHold,FocusGained,FocusLost', '*', 'rshada|wshada'}; {'FocusGained,FocusLost', '*', 'rshada|wshada'};
}; };
resize_windows_proportionally = { resize_windows_proportionally = {
{ 'VimResized', '*', ':wincmd =' }; { 'VimResized', '*', ':wincmd =' };