From 5b45efbee6ebb64269469b636baac5248e83421f Mon Sep 17 00:00:00 2001 From: Ploum <1233155+ploum@users.noreply.github.com> Date: Tue, 14 Nov 2023 11:56:50 +0100 Subject: fix(defaults): set 'fsync' #26034 Problem: 'nofsync' may lose data if the system has a hard shutdown. #9888 Solution: Change default to 'fsync'. This may be revisited in the future when 'nofsync' can be made safer. --- src/nvim/options.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 56ecf26fdf..373dc3c460 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -3307,7 +3307,7 @@ return { }, { abbreviation = 'fs', - defaults = { if_true = false }, + defaults = { if_true = true }, desc = [=[ When on, the OS function fsync() will be called after saving a file (|:write|, |writefile()|, …), |swap-file|, |undo-persistence| and |shada-file|. -- cgit